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

Question: Default positional arguments? #13

Open
IanVS opened this issue Jul 29, 2015 · 2 comments
Open

Question: Default positional arguments? #13

IanVS opened this issue Jul 29, 2015 · 2 comments

Comments

@IanVS
Copy link

IanVS commented Jul 29, 2015

Is it possible to specify a default for positional arguments? For example, my tool expects files or directories as positional arguments, but if none are provided it will execute with cwd as the directory. I can't determine from reading the docs whether this is possible, but it doesn't seem like it.

@gkz
Copy link
Owner

gkz commented Jul 29, 2015

Not at the moment, no. This could be a future feature.

@IanVS
Copy link
Author

IanVS commented Jul 29, 2015

I've decided that my default didn't really make sense, so I no longer need/want this functionality. Feel free to close.

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

2 participants