Skip to content

Commit

Permalink
config: Remove -nx negation shortform
Browse files Browse the repository at this point in the history
This conflicts with argparse's shortening of 1char arguments.

Topic: nn
Reviewers: aaron
  • Loading branch information
jerry-skydio committed Jan 2, 2025
1 parent e9c1d3b commit 20d3a6d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions revup/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ def add_argument(self, *args: Any, **kwargs: Any) -> argparse.Action:
for option_string in action.option_strings:
if option_string.startswith("--"):
no_options.append("--no-" + option_string[2:])
elif option_string.startswith("-"):
no_options.append("-n" + option_string[1:])

if no_options:
action = _StoreFalseAction(
Expand Down

0 comments on commit 20d3a6d

Please sign in to comment.