arghandler icon indicating copy to clipboard operation
arghandler copied to clipboard

Allow specifying arguments in the decorator

Open kewisch opened this issue 9 years ago • 1 comments

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

kewisch avatar Oct 05 '15 19:10 kewisch

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.

druths avatar Oct 05 '15 21:10 druths