From 0b71705c16479836eed3158471310fe2bdc1059b Mon Sep 17 00:00:00 2001 From: Juraj Oravec Date: Sun, 12 May 2024 20:15:02 +0200 Subject: [PATCH] Print help when no file provided Signed-off-by: Juraj Oravec --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index f972f20..a53679f 100644 --- a/main.py +++ b/main.py @@ -317,6 +317,9 @@ def main(): configuration['include_file_name'] = args.include_file_name + if not args.elf_file: + parser.print_help() + exit(1) if not os.path.exists(args.elf_file): eprint('File {elf_file} does not exist!'.format(elf_file=args.elf_file)) exit(1)