Skip to content

Commit 481d8c7

Browse files
Add help message given bad arguments are received
1 parent aacde78 commit 481d8c7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ruff_cgx/__main__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ def main(argv=None):
183183
code = run_check_command(args)
184184
case "format":
185185
code = run_format_command(args)
186+
case _:
187+
parser.print_help()
188+
exit(1)
186189

187190
if code:
188191
exit(code)

0 commit comments

Comments
 (0)