This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author denversc
Recipients benjamin.peterson, denversc
Date 2010-08-06.19:31:30
SpamBayes Score 0.021604361
Marked as misclassified No
Message-id <1281123093.44.0.485972410524.issue9537@psf.upfronthosting.co.za>
In-reply-to
Content
Currently, when a subparser is added to an argparse.ArgumentParser the list of subparsers are stored in the built-in dict type.  When these subparsers are listed when -h is given on the command line they are showed in the order returned from the dictionary's keys() method, which is undefined order.  Instead of showing them in undefined order, it would be preferred to show them at least in the order in which they were added.  This can be done trivially be replacing the dict with a collections.OrderedDict.  A patch is attached.
History
Date User Action Args
2010-08-06 19:31:33denverscsetrecipients: + denversc, benjamin.peterson
2010-08-06 19:31:33denverscsetmessageid: <1281123093.44.0.485972410524.issue9537@psf.upfronthosting.co.za>
2010-08-06 19:31:31denversclinkissue9537 messages
2010-08-06 19:31:31denversccreate