-h and --help revert to top level help when used in a subcommand
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cliff |
Fix Released
|
Undecided
|
Sean Perry | ||
python-openstackclient |
Invalid
|
Medium
|
Sean Perry |
Bug Description
The only way to get help output for a 'sub-command' (like `user set` or `user list`) is to insert 'help' as the first positional argument.
Like so: $ openstack help user set`
usage: openstack user set [-h] [--name <name>] [--project <project>]
If using -h or --help anywhere, the "top-level" help output is printed. (the same output as `openstack help`)
$ openstack user set --help
OR
$ openstack -h user set
Will both print out the *entire* help output, with all env. properties and command options.
usage: openstack [--version] [-v] [--log-file LOG_FILE] [-q] [--debug]
...
Commands:
aggregate add host Add host to aggregate
aggregate create Create a new aggregate
aggregate delete Delete an existing aggregate
summary: |
- Usage is not described accurately for 99% of openstack CLI sub commands + -h and --help are not recognized and revert to top level help |
description: | updated |
Changed in python-openstackclient: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
milestone: | none → m9 |
summary: |
- -h and --help are not recognized and revert to top level help + -h and --help revert to top level help when used in a subcommand |
Changed in python-openstackclient: | |
milestone: | m9 → none |
Changed in python-openstackclient: | |
status: | Invalid → Confirmed |
assignee: | nobody → Sean Perry (sean-perry-a) |
Changed in python-openstackclient: | |
status: | Confirmed → In Progress |
Changed in python-cliff: | |
assignee: | nobody → Sean Perry (sean-perry-a) |
Changed in python-cliff: | |
milestone: | none → 1.14.0 |
status: | Fix Committed → Fix Released |
i'm a bit confused here - is the issue that the -h option isn't showing up?