Print help when no file provided
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
parent
bd70b22a7a
commit
0b71705c16
3
main.py
3
main.py
|
@ -317,6 +317,9 @@ def main():
|
||||||
|
|
||||||
configuration['include_file_name'] = args.include_file_name
|
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):
|
if not os.path.exists(args.elf_file):
|
||||||
eprint('File {elf_file} does not exist!'.format(elf_file=args.elf_file))
|
eprint('File {elf_file} does not exist!'.format(elf_file=args.elf_file))
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user