Skip to content

Conversation

rhysd
Copy link

@rhysd rhysd commented Nov 15, 2023

Currently getopts doesn't complain that multiple options have the same short/long option names. However these cases 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 grows 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.

1 participant