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

Check option names conflict on debug build #116

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rhysd
Copy link

@rhysd rhysd commented Nov 15, 2023

Currently getopts doesn't complain when multiple options have the same short/long option names. But these case are always mistakes because when one option uses some option name, other options which use the same name cannot be specified at all.

This mistake tends to happen when the number of options/flags grow bigger.

This PR checks the conflict on debug build and notifies the mistake to the user.

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

Successfully merging this pull request may close these issues.

None yet

1 participant