print help if args is NULL
This commit is contained in:
parent
e5bb1203fa
commit
f5b213c8ef
|
@ -75,9 +75,10 @@ def parse_args(args):
|
|||
return parser
|
||||
|
||||
def command_line_args(args):
|
||||
needPrintHelp = False if args else True
|
||||
parser = parse_args(args)
|
||||
args = parser.parse_args(args)
|
||||
if args.help:
|
||||
if args.help or needPrintHelp:
|
||||
parser.print_help()
|
||||
sys.exit(1)
|
||||
if not args.startFile:
|
||||
|
|
Loading…
Reference in New Issue