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

Comments

Projects
None yet
1 participant
@bitprophet
Member

bitprophet commented Dec 22, 2015

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.

bitprophet added a commit that referenced this issue Dec 22, 2015

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