nova cli help on invalid command

Bug #892066 reported by klmitch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-novaclient
Fix Released
Wishlist
Zhongyue Luo

Bug Description

When the user enters an invalid subcommand

    usage: nova [--username USERNAME] [--apikey APIKEY] [--projectid PROJECTID]
            [--url URL] [--version VERSION]
            <subcommand> ...
    nova: error: argument <subcommand>: invalid choice: 'f' (choose from 'rename', 'zone-add', 'suspend', 'help', 'show', 'migrate', 'zone-delete', 'actions', 'meta', 'add-fixed-ip', 'image-list', 'pause', 'zone', 'flavor-list', 'boot', 'reboot', 'remove-fixed-ip', 'image-meta', 'image-delete', 'unpause', 'root-password', 'rescue', 'resume', 'image-show', 'zone-info', 'resize-revert', 'resize-confirm', 'resize', 'image-create', 'list', 'unrescue', 'zone-list', 'diagnostics', 'zone-boot', 'rebuild', 'delete')

we let the user know to run **nova help** to get a list of commands?

no longer affects: nova
Thierry Carrez (ttx)
affects: python-novaclient → nova
tags: added: low-hanging-fruit
Zhongyue Luo (zyluo)
Changed in nova:
assignee: nobody → LZY (lzyeval)
Revision history for this message
Zhongyue Luo (zyluo) wrote :

Finished with the code. Will send a review when confirmed.

Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Wishlist
status: New → In Progress
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to python-novaclient (master)

Reviewed: https://review.openstack.org/2476
Committed: http://github.com/openstack/python-novaclient/commit/487032ae07ea1ec703df4839fd9f251368b61ecf
Submitter: Jenkins
Branch: master

 status fixcommitted
 done

commit 487032ae07ea1ec703df4839fd9f251368b61ecf
Author: lzyeval <email address hidden>
Date: Tue Dec 20 11:49:45 2011 +0800

    User friendly help message

    Fixes bug #892066

    Change-Id: Ibeb86c5a9ae0f1dcc313c77fdf923a2eb37de505

Changed in nova:
status: In Progress → Fix Committed
Mark McLoughlin (markmc)
tags: removed: low-hanging-fruit
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
affects: nova → python-novaclient
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.