Skip to content

Commit

Permalink
If passing an invalid choice (for example, '--color ye', suggest the …
Browse files Browse the repository at this point in the history
…correct one
  • Loading branch information
hugovk committed Nov 20, 2024
1 parent 186340a commit 831751f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/norwegianblue/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@

def main() -> None:
parser = argparse.ArgumentParser(
description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter
description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter,
suggest_on_error=True,
)
parser.add_argument(
"product",
Expand Down

0 comments on commit 831751f

Please sign in to comment.