Feature #1692
Show individual command help when the required input parameters are not provided
Status: | Closed | Start date: | 12/13/2012 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | CLI | |||
Target version: | Release 4.0 | |||
Resolution: | fixed | Pull request: |
Description
For example, the output of 'onevm attachdisk -h' is much more useful than the help shown when the required parameters are not given.
$ onevm attachdisk Command attachdisk requires one parameter to run Usage: attachdisk <vmid> Attaches a disk to a running VM States: RUNNING valid options: file, image, target
$ onevm attachdisk 0 Provide a template file or an image: --file <file> --image <image>
$ onevm attachdisk -h ## USAGE attachdisk <vmid> Attaches a disk to a running VM States: RUNNING valid options: file, image, target ## OPTIONS -f, --file file Selects the template file -i, --image id|name Selects the image -t, --target target Device where the image will be attached -v, --verbose Verbose mode -h, --help Show this message -V, --version Show version and copyright information --user name User name used to connect to OpenNebula --password password Password to authenticate with OpenNebula --endpoint endpoint URL of OpenNebula xmlrpc frontend
Associated revisions
feature #1692: show commands parameters on error help
feature #1692: show commands parameters on error help
History
#1 Updated by Javi Fontan over 8 years ago
- Status changed from New to Closed
- Resolution set to fixed