Merge "Print help if nova-manage subcommand is not specified"

This commit is contained in:
Zuul
2020-01-15 01:55:37 +00:00
committed by Gerrit Code Review
2 changed files with 2 additions and 1 deletions

View File

@@ -34,7 +34,7 @@ Run without arguments to see a list of available command categories::
nova-manage
You can also run with a category argument such as user to see a list of all
You can also run with a category argument such as ``db`` to see a list of all
commands in that category::
nova-manage db

View File

@@ -124,6 +124,7 @@ def add_command_parsers(subparsers, categories):
parser.set_defaults(command_object=command_object)
category_subparsers = parser.add_subparsers(dest='action')
category_subparsers.required = True
for (action, action_fn) in methods_of(command_object):
parser = category_subparsers.add_parser(