Trailing and leading underscores appear in flag names #297

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

Projects

None yet

1 participant

@bitprophet
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.

@bitprophet bitprophet added a commit that closed this issue Dec 22, 2015
@bitprophet bitprophet Fix #297 a2978a2
@bitprophet bitprophet added a commit that referenced this issue Dec 22, 2015
@bitprophet bitprophet Changelog re #297 b695498
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment