Feature #1692

Show individual command help when the required input parameters are not provided

Added by Carlos Martín over 8 years ago. Updated over 8 years ago.

Status:ClosedStart date:12/13/2012
Priority:NormalDue 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

Revision 3ad38d44
Added by Javi Fontan over 8 years ago

feature #1692: show commands parameters on error help

Revision a56f8dbb
Added by Javi Fontan over 8 years ago

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

Also available in: Atom PDF