Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying arguments in the decorator #6

Open
kewisch opened this issue Oct 5, 2015 · 1 comment
Open

Allow specifying arguments in the decorator #6

kewisch opened this issue Oct 5, 2015 · 1 comment

Comments

@kewisch
Copy link

kewisch commented Oct 5, 2015

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

@druths
Copy link
Owner

druths commented Oct 5, 2015

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 notifications@github.com 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants