Skip to content

Commit 831751f

Browse files
committed
If passing an invalid choice (for example, '--color ye', suggest the correct one
1 parent 186340a commit 831751f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/norwegianblue/cli.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929

3030
def main() -> None:
3131
parser = argparse.ArgumentParser(
32-
description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter
32+
description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter,
33+
suggest_on_error=True,
3334
)
3435
parser.add_argument(
3536
"product",

0 commit comments

Comments
 (0)