Fixed --help error with no arguments

This commit is contained in:
Rob McMullen 2017-05-05 10:59:28 -07:00
parent fb933cc9f5
commit 1520abd742

View File

@ -469,7 +469,7 @@ def run():
else:
# show script help
args = ["--help"]
if reverse_aliases[args[0]] == "create":
if reverse_aliases.get(args[0], None) == "create":
create_parser.epilog = get_template_info()
else:
# Allow global options to come before or after disk image name