Skip to content

Commit

Permalink
Suggest the correct choice when invalid (Python 3.14+) (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Nov 21, 2024
2 parents 186340a + 7827b47 commit bc6df5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/norwegianblue/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ def main() -> None:
parser = argparse.ArgumentParser(
description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter
)
# Added in Python 3.14
parser.suggest_on_error = True
parser.add_argument(
"product",
nargs="*",
Expand Down

0 comments on commit bc6df5b

Please sign in to comment.