diff options
Diffstat (limited to 'scripts/lib/image/help.py')
-rw-r--r-- | scripts/lib/image/help.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/lib/image/help.py b/scripts/lib/image/help.py index ce42627cdb..93211498d5 100644 --- a/scripts/lib/image/help.py +++ b/scripts/lib/image/help.py | |||
@@ -81,11 +81,13 @@ def invoke_subcommand(args, parser, main_command_usage, subcommands): | |||
81 | if not args: | 81 | if not args: |
82 | logging.error("No subcommand specified, exiting") | 82 | logging.error("No subcommand specified, exiting") |
83 | parser.print_help() | 83 | parser.print_help() |
84 | return 1 | ||
84 | elif args[0] == "help": | 85 | elif args[0] == "help": |
85 | wic_help(args, main_command_usage, subcommands) | 86 | wic_help(args, main_command_usage, subcommands) |
86 | elif args[0] not in subcommands: | 87 | elif args[0] not in subcommands: |
87 | logging.error("Unsupported subcommand %s, exiting\n" % (args[0])) | 88 | logging.error("Unsupported subcommand %s, exiting\n" % (args[0])) |
88 | parser.print_help() | 89 | parser.print_help() |
90 | return 1 | ||
89 | else: | 91 | else: |
90 | usage = subcommands.get(args[0], subcommand_error)[1] | 92 | usage = subcommands.get(args[0], subcommand_error)[1] |
91 | subcommands.get(args[0], subcommand_error)[0](args[1:], usage) | 93 | subcommands.get(args[0], subcommand_error)[0](args[1:], usage) |