Merge "Print help if nova-manage subcommand is not specified"
This commit is contained in:
@@ -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
|
||||
|
@@ -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(
|
||||
|
Reference in New Issue
Block a user