Trivial: Improve doc for "server create" command

The following options of "server create" command support searching
by both name and ID. So add this info into doc.

--image, --volume, --flavor, --security.

Change-Id: I93b167da58144e5de6c9996009b7ea2449fb4cd8
This commit is contained in:
Tang Chen 2015-12-04 11:51:15 +08:00
parent 40459b25e0
commit ca76260bf8
2 changed files with 9 additions and 8 deletions

View File

@ -77,19 +77,20 @@ Create a new server
.. option:: --image <image>
Create server from this image
Create server from this image (name or ID)
.. option:: --volume <volume>
Create server from this volume
Create server from this volume (name or ID)
.. option:: --flavor <flavor>
Create server with this flavor
Create server with this flavor (name or ID)
.. option:: --security-group <security-group-name>
Security group to assign to this server (repeat for multiple groups)
Security group to assign to this server (name or ID)
(repeat for multiple groups)
.. option:: --key-name <key-name>

View File

@ -276,25 +276,25 @@ class CreateServer(show.ShowOne):
disk_group.add_argument(
'--image',
metavar='<image>',
help=_('Create server from this image'),
help=_('Create server from this image (name or ID)'),
)
disk_group.add_argument(
'--volume',
metavar='<volume>',
help=_('Create server from this volume'),
help=_('Create server from this volume (name or ID)'),
)
parser.add_argument(
'--flavor',
metavar='<flavor>',
required=True,
help=_('Create server with this flavor'),
help=_('Create server with this flavor (name or ID)'),
)
parser.add_argument(
'--security-group',
metavar='<security-group-name>',
action='append',
default=[],
help=_('Security group to assign to this server '
help=_('Security group to assign to this server (name or ID) '
'(repeat for multiple groups)'),
)
parser.add_argument(