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

Formatting error on conflicting options #616

Closed
guiniol opened this issue Aug 7, 2016 · 2 comments
Closed

Formatting error on conflicting options #616

guiniol opened this issue Aug 7, 2016 · 2 comments
Labels
C-bug Category: Updating dependencies
Milestone

Comments

@guiniol
Copy link

guiniol commented Aug 7, 2016

Hello,

The code displaying this issue is here: guiniol/dnsmole@cc868c1

If I do dnsmole --serve -k 34 toto, I get an error because --serve and -k are conflicting. The problem is the error message:

error: The argument '--serve' cannot be used with '--socket <socket>'

USAGE:
    dnsmole <target> --connect --socket <socket> <--serve|--connect>

For more information try --help

The usage line displays --serve twice when it can only be specified once. Also, --serve and --connect are part of an arggroup which is required.

EDIT: Ideally, <target> should be at the end since it is a positional argument

@kbknapp
Copy link
Member

kbknapp commented Aug 20, 2016

Thanks for filing this, I'll look into the root cause and post back with what I find.

@kbknapp kbknapp added C-bug Category: Updating dependencies P2: need to have labels Aug 20, 2016
@kbknapp kbknapp added this to the 2.10.5 milestone Aug 26, 2016
kbknapp added a commit that referenced this issue Aug 28, 2016
…s and ones that conflict with each other

Args that conflict *and* are in a group will now only display in the
group and not in the usage string itself.

Closes #616
@guiniol
Copy link
Author

guiniol commented Aug 28, 2016

Thanks a lot! ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: Updating dependencies
Projects
None yet
Development

No branches or pull requests

2 participants