nova/doc/source/cli
Matt Riedemann 48f9b1c2ce Print help if nova-manage subcommand is not specified
If a nova-manage command is executed without the -h option
or a subcommand the user gets an ugly traceback. This is
easily recreated:

  $ tox -e venv -- nova-manage db

Make the action argument required, so we get a helpful error message
instead.

  $ nova-manage db
  usage: nova-manage db [-h]
                      {archive_deleted_rows,ironic_flavor_migration,
                       null_instance_uuid_scan,online_data_migrations,
                       purge,sync,version}
                      ...
  nova-manage db: error: the following arguments are required: action

Note that unit tests appear to be impossible for this, since doing so
attempts to initialize an oslo.config 'CONF' singleton and this is
something we've already done in 'nova.test' and can't do again.

Change-Id: I24d03eed3aa3b882c49916938f4c25d76fd4e831
Closes-Bug: #1837199
Co-Authored-By: Stephen Finucane <stephenfin@redhat.com>
(cherry picked from commit 51b0d4ca58)
2020-01-15 10:29:02 +00:00
..
index.rst docs: Remove references to nova-consoleauth 2019-06-17 15:18:31 +01:00
nova-api-metadata.rst Allow run metadata api per cell 2019-01-14 10:20:50 -05:00
nova-api-os-compute.rst doc: Start using openstackdoctheme's extlink extension 2018-05-03 14:34:47 +01:00
nova-api.rst doc: Start using openstackdoctheme's extlink extension 2018-05-03 14:34:47 +01:00
nova-compute.rst doc: Start using openstackdoctheme's extlink extension 2018-05-03 14:34:47 +01:00
nova-conductor.rst doc: Start using openstackdoctheme's extlink extension 2018-05-03 14:34:47 +01:00
nova-console.rst Deprecate the nova-console service 2018-10-15 10:03:08 +01:00
nova-dhcpbridge.rst doc: Start using openstackdoctheme's extlink extension 2018-05-03 14:34:47 +01:00
nova-manage.rst Print help if nova-manage subcommand is not specified 2020-01-15 10:29:02 +00:00
nova-network.rst Merge "doc: Start using openstackdoctheme's extlink extension" 2018-05-30 15:21:12 +00:00
nova-novncproxy.rst doc: Start using openstackdoctheme's extlink extension 2018-05-03 14:34:47 +01:00
nova-rootwrap.rst doc: Start using openstackdoctheme's extlink extension 2018-05-03 14:34:47 +01:00
nova-scheduler.rst doc: Start using openstackdoctheme's extlink extension 2018-05-03 14:34:47 +01:00
nova-serialproxy.rst doc: Start using openstackdoctheme's extlink extension 2018-05-03 14:34:47 +01:00
nova-spicehtml5proxy.rst doc: Start using openstackdoctheme's extlink extension 2018-05-03 14:34:47 +01:00
nova-status.rst Nova object changes for forbidden aggregates request filter 2019-09-09 20:16:32 +00:00
nova-xvpvncproxy.rst Deprecate the nova-xvpvncproxy service 2018-10-15 10:03:13 +01:00