arghandler
arghandler copied to clipboard
Allow specifying arguments in the decorator
This is an enhancement request. There is some boilerplate in subcommands regarding the arguments. It would be nice to be able to just specify the argument configuration in the decorator, like it is done for mercurial. Example:
https://selenic.com/hg/file/tip/mercurial/commands.py#l247
I like this idea. This will require the subcommand parser to be linked to the top level parser, which isn't currently done.
Sent from a device with a tiny keyboard
On Oct 5, 2015, at 3:47 PM, Philipp Kewisch [email protected] wrote:
This is an enhancement request. There is some boilerplate in subcommands regarding the arguments. It would be nice to be able to just specify the argument configuration in the decorator, like it is done for mercurial. Example:
https://selenic.com/hg/file/tip/mercurial/commands.py#l247
— Reply to this email directly or view it on GitHub.