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

Trailing and leading underscores appear in flag names #297

Closed
bitprophet opened this issue Dec 22, 2015 · 0 comments
Closed

Trailing and leading underscores appear in flag names #297

bitprophet opened this issue Dec 22, 2015 · 0 comments

Comments

@bitprophet
Copy link
Member

E.g. a task with signature def foo(myarg_=True): will try to be processed as if its flag variant was --myarg- due to the straightforward dash-to-underscore transformation.

These should just have the leading/trailing underscore ignored for purposes of flag transformations, since they're usually added simply to get around Python local-namespace issues and don't make much sense as literal flag names anyway.

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