[issue9253] argparse: optional subparsers

2010-07-14 Thread Vincent Driessen
Vincent Driessen added the comment: Actually, this is a rather common concept. Broadly used tools like for example Git use this kind of subcommand handling. This command shows all remotes: git remote(i.e. is like git remote list) Showing/removing remotes is done using

[issue9253] argparse: optional subparsers

2010-07-13 Thread Vincent Driessen
Vincent Driessen added the comment: Changed the title, so it shows that the feature request is for argparse. -- title: optional subparsers -> argparse: optional subparsers ___ Python tracker <http://bugs.python.org/iss

[issue9253] optional subparsers

2010-07-13 Thread Vincent Driessen
New submission from Vincent Driessen : **NOTE**: This is a re-post of http://code.google.com/p/argparse/issues/detail?id=47 What steps will reproduce the problem? parser = argparse.ArgumentParser() sub = parser.add_subparsers() sub.add_parser("info") parser.add_argum