summaryrefslogtreecommitdiff
path: root/openstackclient/volume/v1/volume.py
diff options
context:
space:
mode:
authorDean Troyer <dtroyer@gmail.com>2016-03-28 14:02:33 -0500
committerDean Troyer <dtroyer@gmail.com>2016-03-28 18:25:58 -0500
commita3a2a7e9f0b59c151c87df3860350df10a48963f (patch)
treed8d475f6fd0f8403b7ec1bc19c44ea27d5857909 /openstackclient/volume/v1/volume.py
parent5f55e99d464b2ca0a9f1cf879164b2cc2bb23fc5 (diff)
downloadpython-openstackclient-a3a2a7e9f0b59c151c87df3860350df10a48963f.tar.gz
Docs cleanup: volume command help
This formats the volume command help text consistent with the rest of OSC, adds some reference targets and some explanation text to some commands. No functional changes have been made, only cosmetic/help output. Change-Id: Ib86ec3ca58bdea5f33078ced3ec3583b2be0e89a
Diffstat (limited to 'openstackclient/volume/v1/volume.py')
-rw-r--r--openstackclient/volume/v1/volume.py46
1 files changed, 23 insertions, 23 deletions
diff --git a/openstackclient/volume/v1/volume.py b/openstackclient/volume/v1/volume.py
index 90827d20..29c197ef 100644
--- a/openstackclient/volume/v1/volume.py
+++ b/openstackclient/volume/v1/volume.py
@@ -31,20 +31,30 @@ class CreateVolume(command.ShowOne):
parser.add_argument(
'name',
metavar='<name>',
- help='New volume name',
+ help='Volume name',
)
parser.add_argument(
'--size',
metavar='<size>',
required=True,
type=int,
- help='New volume size in GB',
+ help='Volume size in GB',
+ )
+ parser.add_argument(
+ '--type',
+ metavar='<volume-type>',
+ help="Set the type of volume",
+ )
+ parser.add_argument(
+ '--image',
+ metavar='<image>',
+ help='Use <image> as source of volume (name or ID)',
)
snapshot_group = parser.add_mutually_exclusive_group()
snapshot_group.add_argument(
'--snapshot',
metavar='<snapshot>',
- help='Use <snapshot> as source of new volume',
+ help='Use <snapshot> as source of volume (name or ID)',
)
snapshot_group.add_argument(
'--snapshot-id',
@@ -52,14 +62,14 @@ class CreateVolume(command.ShowOne):
help=argparse.SUPPRESS,
)
parser.add_argument(
- '--description',
- metavar='<description>',
- help='New volume description',
+ '--source',
+ metavar='<volume>',
+ help='Volume to clone (name or ID)',
)
parser.add_argument(
- '--type',
- metavar='<volume-type>',
- help='Use <volume-type> as the new volume type',
+ '--description',
+ metavar='<description>',
+ help='Volume description',
)
parser.add_argument(
'--user',
@@ -74,17 +84,7 @@ class CreateVolume(command.ShowOne):
parser.add_argument(
'--availability-zone',
metavar='<availability-zone>',
- help='Create new volume in <availability-zone>',
- )
- parser.add_argument(
- '--image',
- metavar='<image>',
- help='Use <image> as source of new volume (name or ID)',
- )
- parser.add_argument(
- '--source',
- metavar='<volume>',
- help='Volume to clone (name or ID)',
+ help='Create volume in <availability-zone>',
)
parser.add_argument(
'--property',
@@ -308,7 +308,7 @@ class SetVolume(command.Command):
parser.add_argument(
'volume',
metavar='<volume>',
- help='Volume to change (name or ID)',
+ help='Volume to modify (name or ID)',
)
parser.add_argument(
'--name',
@@ -330,7 +330,7 @@ class SetVolume(command.Command):
'--property',
metavar='<key=value>',
action=parseractions.KeyValueAction,
- help='Property to add or modify for this volume '
+ help='Set a property on this volume '
'(repeat option to set multiple properties)',
)
return parser
@@ -411,7 +411,7 @@ class UnsetVolume(command.Command):
metavar='<key>',
action='append',
default=[],
- help='Property to remove from volume '
+ help='Remove a property from volume '
'(repeat option to remove multiple properties)',
required=True,
)