[Neutron][Improvement]Neutron can ask user to see the help file in case the user passes wrong arguments in CLI
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-neutronclient |
Fix Released
|
Low
|
Unassigned |
Bug Description
Openstack CLIs have the support of displaying help file for all components, specifically neutron.
However, for a new user/developer, understanding the help file is important.
When we pass incorrect attributes to a nova client, we get the following output:
#######
reedip@
usage: nova agent-delete <id>
error: too few arguments
Try 'nova help agent-delete' for more information.
#######
The last line gives a useful information to the new user/developer as to what he/she can do to find out more information.
Something like this can be added to the neutron-client as well
Current output of neutron client:
#######
reedip@
usage: neutron firewall-create [-h] [-f {html,json,
neutron firewall-create: error: too few arguments
#######
Expected output:
#######
reedip@
usage: neutron firewall-create [-h] [-f {html,json,
neutron firewall-create: error: too few arguments
Try 'neutron help firewall-delete' for more information.
#######
affects: | neutron → python-neutronclient |
Changed in python-neutronclient: | |
assignee: | nobody → Reedip (reedip-banerjee) |
Changed in python-neutronclient: | |
milestone: | none → 4.0.0 |
importance: | Undecided → Low |
Changed in python-neutronclient: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/224452
Review: https:/