Merge "Add short command line option"
This commit is contained in:
commit
e3f64c0055
@ -47,7 +47,7 @@ class IronicShell(object):
|
||||
action='version',
|
||||
version=ironicclient.__version__)
|
||||
|
||||
parser.add_argument('-d', '--debug',
|
||||
parser.add_argument('--debug',
|
||||
default=bool(utils.env('IRONICCLIENT_DEBUG')),
|
||||
action='store_true',
|
||||
help='Defaults to env[IRONICCLIENT_DEBUG]')
|
||||
|
@ -45,10 +45,10 @@ def do_chassis_list(cc, args):
|
||||
utils.print_list(chassis, fields, field_labels, sortby=1)
|
||||
|
||||
|
||||
@utils.arg('--description',
|
||||
@utils.arg('-d', '--description',
|
||||
metavar='<description>',
|
||||
help='Free text description of the chassis')
|
||||
@utils.arg('--extra',
|
||||
@utils.arg('-e', '--extra',
|
||||
metavar="<key=value>",
|
||||
action='append',
|
||||
help="Record arbitrary key/value metadata. "
|
||||
|
@ -49,24 +49,24 @@ def do_node_list(cc, args):
|
||||
utils.print_list(nodes, fields, field_labels, sortby=1)
|
||||
|
||||
|
||||
@utils.arg('--chassis_id',
|
||||
@utils.arg('-c', '--chassis_id',
|
||||
metavar='<chassis id>',
|
||||
help='ID of the chassis that this node belongs to [REQUIRED]')
|
||||
@utils.arg('--driver',
|
||||
@utils.arg('-d', '--driver',
|
||||
metavar='<driver>',
|
||||
help='Driver used to control the node [REQUIRED]')
|
||||
@utils.arg('--driver_info',
|
||||
@utils.arg('-i', '--driver_info',
|
||||
metavar='<key=value>',
|
||||
action='append',
|
||||
help='Key/value pairs used by the driver. '
|
||||
'Can be specified multiple times')
|
||||
@utils.arg('--properties',
|
||||
@utils.arg('-p', '--properties',
|
||||
metavar='<key=value>',
|
||||
action='append',
|
||||
help='Key/value pairs describing the physical characteristics '
|
||||
'of the node. This is exported to Nova and used by the '
|
||||
'scheduler. Can be specified multiple times')
|
||||
@utils.arg('--extra',
|
||||
@utils.arg('-e', '--extra',
|
||||
metavar='<key=value>',
|
||||
action='append',
|
||||
help="Record arbitrary key/value metadata. "
|
||||
|
@ -45,13 +45,13 @@ def do_port_list(cc, args):
|
||||
utils.print_list(port, fields, field_labels, sortby=1)
|
||||
|
||||
|
||||
@utils.arg('--address',
|
||||
@utils.arg('-a', '--address',
|
||||
metavar='<address>',
|
||||
help='MAC Address for this port [REQUIRED]')
|
||||
@utils.arg('--node_id',
|
||||
@utils.arg('-n', '--node_id',
|
||||
metavar='<node id>',
|
||||
help='ID of the node that this port belongs to [REQUIRED]')
|
||||
@utils.arg('--extra',
|
||||
@utils.arg('-e', '--extra',
|
||||
metavar="<key=value>",
|
||||
action='append',
|
||||
help="Record arbitrary key/value metadata. "
|
||||
|
Loading…
x
Reference in New Issue
Block a user