Message113124
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. |
|
Date |
User |
Action |
Args |
2010-08-06 19:31:33 | denversc | set | recipients:
+ denversc, benjamin.peterson |
2010-08-06 19:31:33 | denversc | set | messageid: <1281123093.44.0.485972410524.issue9537@psf.upfronthosting.co.za> |
2010-08-06 19:31:31 | denversc | link | issue9537 messages |
2010-08-06 19:31:31 | denversc | create | |
|