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

conflictHandler 'resolve' error #46

Closed
hpaulj opened this issue Feb 8, 2013 · 2 comments
Closed

conflictHandler 'resolve' error #46

hpaulj opened this issue Feb 8, 2013 · 2 comments

Comments

@hpaulj
Copy link

hpaulj commented Feb 8, 2013

For the new 'resolve' case in base.js, parser.formatHelp() produces

usage: _mocha [-h] [--foo FOO] [--foo FOO]
Optional arguments:
  --foo FOO  new foo

That is, [-foo FOO] appears twice in usage, and the usual -h, --help Show ... line is missing.

The help message should be

usage: _mocha [-h] [--foo FOO]
Optional arguments:
  -h, --help  Show this help message and exit.
  --foo FOO  new foo
@hpaulj
Copy link
Author

hpaulj commented Feb 9, 2013

My https://github.com/hpaulj/argparse/tree/conflictHandler branch is closer to the python code in structure and behavior. It should be read to pull soon.

@puzrin
Copy link
Member

puzrin commented Feb 9, 2013

No problems.Will be waiting for your pull request. Thanks a lot for your efforts.

puzrin pushed a commit that referenced this issue Feb 10, 2013
Conflict handler with 'resolve', issue #46
@puzrin puzrin closed this as completed Feb 10, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants