mirror of
https://github.com/robmcmullen/atrcopy.git
synced 2024-12-28 15:29:33 +00:00
Fixed --help error with no arguments
This commit is contained in:
parent
fb933cc9f5
commit
1520abd742
@ -469,7 +469,7 @@ def run():
|
|||||||
else:
|
else:
|
||||||
# show script help
|
# show script help
|
||||||
args = ["--help"]
|
args = ["--help"]
|
||||||
if reverse_aliases[args[0]] == "create":
|
if reverse_aliases.get(args[0], None) == "create":
|
||||||
create_parser.epilog = get_template_info()
|
create_parser.epilog = get_template_info()
|
||||||
else:
|
else:
|
||||||
# Allow global options to come before or after disk image name
|
# Allow global options to come before or after disk image name
|
||||||
|
Loading…
Reference in New Issue
Block a user