[issue9253] argparse: optional subparsers
Vincent Driessen
report at bugs.python.org
Wed Jul 14 20:18:41 CEST 2010
Vincent Driessen <vincent at datafox.nl> 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 subsubcommands:
git remote show [...]
git remote rm [...]
That, in combination with the explicit design goal that "[argparse] isn't dogmatic about what your command line interface should look like" should be enough reason to be wanting this, in my humble opinion.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9253>
_______________________________________
More information about the Python-bugs-list
mailing list