Skip to content

Commit 739ceb5

Browse files
committed
benchmarks.py: print usage when no arguments are supplied
1 parent 88f4ab1 commit 739ceb5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

benchmarks.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,5 +419,9 @@ def action_emit(args):
419419
help="base name of the output file without extensions (default: output)")
420420
parser_emit.set_defaults(func=action_emit)
421421

422+
if len(sys.argv) == 1:
423+
parser.print_help()
424+
sys.exit(1)
425+
422426
args = parser.parse_args()
423427
args.func(args)

0 commit comments

Comments
 (0)