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

@task-controlled shortflags/flag aliases #34

Closed
bitprophet opened this issue Oct 21, 2012 · 1 comment
Closed

@task-controlled shortflags/flag aliases #34

bitprophet opened this issue Oct 21, 2012 · 1 comment

Comments

@bitprophet
Copy link
Member

Argument-level API allows for an arg to have one or more names, but right now @task only does auto-shortflags or no-auto-shortflags without exposing the aliasing behavior to users.

Obvious choice is a map, @task(argnames={'realkwarg': ['r', 'rk']}) (turning into the parser-level flags for realkwarg being --realkwarg, --rk and -r). Not sure what this option's name should be though, argnames is kinda fugly.

@bitprophet
Copy link
Member Author

Rolling into #174

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

No branches or pull requests

1 participant