Normalize more help strings

Change-Id: I2b21bc904e35c1cc50da369d148e607fe3e8cf90
This commit is contained in:
Dean Troyer 2014-06-20 10:06:05 -05:00
parent ea938e8ddf
commit 5bb6c72ef7
9 changed files with 58 additions and 53 deletions

View File

@ -26,7 +26,7 @@ from openstackclient.common import utils
class ShowConsoleLog(command.Command): class ShowConsoleLog(command.Command):
"""Show console-log command""" """Show server's console output"""
log = logging.getLogger(__name__ + '.ShowConsoleLog') log = logging.getLogger(__name__ + '.ShowConsoleLog')
@ -35,7 +35,7 @@ class ShowConsoleLog(command.Command):
parser.add_argument( parser.add_argument(
'server', 'server',
metavar='<server>', metavar='<server>',
help='Name or ID of server to display console log', help='Server (name or ID)',
) )
parser.add_argument( parser.add_argument(
'--lines', '--lines',
@ -67,7 +67,7 @@ class ShowConsoleLog(command.Command):
class ShowConsoleURL(show.ShowOne): class ShowConsoleURL(show.ShowOne):
"""Show console-url command""" """Show server's remote console URL"""
log = logging.getLogger(__name__ + '.ShowConsoleURL') log = logging.getLogger(__name__ + '.ShowConsoleURL')
@ -76,7 +76,7 @@ class ShowConsoleURL(show.ShowOne):
parser.add_argument( parser.add_argument(
'server', 'server',
metavar='<server>', metavar='<server>',
help='Name or ID of server to display console log', help='Server (name or ID)',
) )
type_group = parser.add_mutually_exclusive_group() type_group = parser.add_mutually_exclusive_group()
type_group.add_argument( type_group.add_argument(

View File

@ -26,7 +26,7 @@ from openstackclient.common import utils
class CreateFlavor(show.ShowOne): class CreateFlavor(show.ShowOne):
"""Create flavor command""" """Create new flavor"""
log = logging.getLogger(__name__ + ".CreateFlavor") log = logging.getLogger(__name__ + ".CreateFlavor")
@ -35,7 +35,8 @@ class CreateFlavor(show.ShowOne):
parser.add_argument( parser.add_argument(
"name", "name",
metavar="<name>", metavar="<name>",
help="Name of the new flavor") help="New flavor name",
)
parser.add_argument( parser.add_argument(
"--id", "--id",
metavar="<id>", metavar="<id>",
@ -84,12 +85,14 @@ class CreateFlavor(show.ShowOne):
dest="public", dest="public",
action="store_true", action="store_true",
default=True, default=True,
help="Flavor is accessible to the public (default)") help="Flavor is accessible to other projects (default)",
)
public_group.add_argument( public_group.add_argument(
"--private", "--private",
dest="public", dest="public",
action="store_false", action="store_false",
help="Flavor is inaccessible to the public") help="Flavor is inaccessible to other projects",
)
return parser return parser
def take_action(self, parsed_args): def take_action(self, parsed_args):
@ -115,7 +118,7 @@ class CreateFlavor(show.ShowOne):
class DeleteFlavor(command.Command): class DeleteFlavor(command.Command):
"""Delete flavor command""" """Delete a flavor"""
log = logging.getLogger(__name__ + ".DeleteFlavor") log = logging.getLogger(__name__ + ".DeleteFlavor")
@ -124,7 +127,8 @@ class DeleteFlavor(command.Command):
parser.add_argument( parser.add_argument(
"flavor", "flavor",
metavar="<flavor>", metavar="<flavor>",
help="Name or ID of flavor to delete") help="Flavor to delete (name or ID)",
)
return parser return parser
def take_action(self, parsed_args): def take_action(self, parsed_args):
@ -137,7 +141,7 @@ class DeleteFlavor(command.Command):
class ListFlavor(lister.Lister): class ListFlavor(lister.Lister):
"""List flavor command""" """List flavors"""
log = logging.getLogger(__name__ + ".ListFlavor") log = logging.getLogger(__name__ + ".ListFlavor")
@ -164,7 +168,7 @@ class ListFlavor(lister.Lister):
class ShowFlavor(show.ShowOne): class ShowFlavor(show.ShowOne):
"""Show flavor command""" """Show flavor details"""
log = logging.getLogger(__name__ + ".ShowFlavor") log = logging.getLogger(__name__ + ".ShowFlavor")
@ -173,7 +177,8 @@ class ShowFlavor(show.ShowOne):
parser.add_argument( parser.add_argument(
"flavor", "flavor",
metavar="<flavor>", metavar="<flavor>",
help="Name or ID of flavor to display") help="Flavor to display (name or ID)",
)
return parser return parser
def take_action(self, parsed_args): def take_action(self, parsed_args):

View File

@ -26,7 +26,7 @@ from openstackclient.common import utils
class AddFloatingIP(command.Command): class AddFloatingIP(command.Command):
"""Add floating-ip command""" """Add floating-ip to server"""
log = logging.getLogger(__name__ + ".AddFloatingIP") log = logging.getLogger(__name__ + ".AddFloatingIP")
@ -40,7 +40,7 @@ class AddFloatingIP(command.Command):
parser.add_argument( parser.add_argument(
"server", "server",
metavar="<server>", metavar="<server>",
help="Name of the server to receive the IP address", help="Server to receive the IP address (name or ID)",
) )
return parser return parser
@ -56,7 +56,7 @@ class AddFloatingIP(command.Command):
class CreateFloatingIP(show.ShowOne): class CreateFloatingIP(show.ShowOne):
"""Create floating-ip command""" """Create new floating-ip"""
log = logging.getLogger(__name__ + '.CreateFloatingIP') log = logging.getLogger(__name__ + '.CreateFloatingIP')
@ -80,7 +80,7 @@ class CreateFloatingIP(show.ShowOne):
class DeleteFloatingIP(command.Command): class DeleteFloatingIP(command.Command):
"""Delete floating-ip command""" """Delete a floating-ip"""
log = logging.getLogger(__name__ + '.DeleteFloatingIP') log = logging.getLogger(__name__ + '.DeleteFloatingIP')
@ -107,7 +107,7 @@ class DeleteFloatingIP(command.Command):
class ListFloatingIP(lister.Lister): class ListFloatingIP(lister.Lister):
"""List floating-ip command""" """List floating-ips"""
log = logging.getLogger(__name__ + '.ListFloatingIP') log = logging.getLogger(__name__ + '.ListFloatingIP')
@ -127,7 +127,7 @@ class ListFloatingIP(lister.Lister):
class RemoveFloatingIP(command.Command): class RemoveFloatingIP(command.Command):
"""Remove floating-ip command""" """Remove floating-ip from server"""
log = logging.getLogger(__name__ + ".RemoveFloatingIP") log = logging.getLogger(__name__ + ".RemoveFloatingIP")
@ -141,7 +141,7 @@ class RemoveFloatingIP(command.Command):
parser.add_argument( parser.add_argument(
"server", "server",
metavar="<server>", metavar="<server>",
help="Name of the server to remove the IP address from", help="Server to remove the IP address from (name or ID)",
) )
return parser return parser

View File

@ -23,7 +23,7 @@ from openstackclient.common import utils
class ListFloatingIPPool(lister.Lister): class ListFloatingIPPool(lister.Lister):
"""List floating-ip-pool command""" """List floating-ip-pools"""
log = logging.getLogger(__name__ + '.ListFloatingIPPool') log = logging.getLogger(__name__ + '.ListFloatingIPPool')

View File

@ -25,7 +25,7 @@ from openstackclient.common import utils
class ListHypervisor(lister.Lister): class ListHypervisor(lister.Lister):
"""List hypervisor command""" """List hypervisors"""
log = logging.getLogger(__name__ + ".ListHypervisor") log = logging.getLogger(__name__ + ".ListHypervisor")
@ -33,9 +33,9 @@ class ListHypervisor(lister.Lister):
parser = super(ListHypervisor, self).get_parser(prog_name) parser = super(ListHypervisor, self).get_parser(prog_name)
parser.add_argument( parser.add_argument(
"--matching", "--matching",
metavar="<hostname>", metavar="<hostname-str>",
help="List hypervisors with hostnames matching the given" help="Filter hypervisors using <hostname-str> substring",
" substring") )
return parser return parser
def take_action(self, parsed_args): def take_action(self, parsed_args):
@ -58,7 +58,7 @@ class ListHypervisor(lister.Lister):
class ShowHypervisor(show.ShowOne): class ShowHypervisor(show.ShowOne):
"""Show hypervisor command""" """Show hypervisor details"""
log = logging.getLogger(__name__ + ".ShowHypervisor") log = logging.getLogger(__name__ + ".ShowHypervisor")

View File

@ -29,7 +29,7 @@ from openstackclient.common import utils
class CreateKeypair(show.ShowOne): class CreateKeypair(show.ShowOne):
"""Create keypair command""" """Create new keypair"""
log = logging.getLogger(__name__ + '.CreateKeypair') log = logging.getLogger(__name__ + '.CreateKeypair')
@ -79,7 +79,7 @@ class CreateKeypair(show.ShowOne):
class DeleteKeypair(command.Command): class DeleteKeypair(command.Command):
"""Delete keypair command""" """Delete a keypair"""
log = logging.getLogger(__name__ + '.DeleteKeypair') log = logging.getLogger(__name__ + '.DeleteKeypair')
@ -100,7 +100,7 @@ class DeleteKeypair(command.Command):
class ListKeypair(lister.Lister): class ListKeypair(lister.Lister):
"""List keypair command""" """List keypairs"""
log = logging.getLogger(__name__ + ".ListKeypair") log = logging.getLogger(__name__ + ".ListKeypair")
@ -120,7 +120,7 @@ class ListKeypair(lister.Lister):
class ShowKeypair(show.ShowOne): class ShowKeypair(show.ShowOne):
"""Show keypair command""" """Show keypair details"""
log = logging.getLogger(__name__ + '.ShowKeypair') log = logging.getLogger(__name__ + '.ShowKeypair')

View File

@ -41,7 +41,7 @@ class IssueToken(show.ShowOne):
class RevokeToken(command.Command): class RevokeToken(command.Command):
"""Revoke token command""" """Revoke existing token"""
log = logging.getLogger(__name__ + '.RevokeToken') log = logging.getLogger(__name__ + '.RevokeToken')

View File

@ -25,7 +25,7 @@ from openstackclient.common import utils
class CreateIdentityProvider(show.ShowOne): class CreateIdentityProvider(show.ShowOne):
"""Create identity_provider command""" """Create new identity provider"""
log = logging.getLogger(__name__ + '.CreateIdentityProvider') log = logging.getLogger(__name__ + '.CreateIdentityProvider')
@ -33,7 +33,7 @@ class CreateIdentityProvider(show.ShowOne):
parser = super(CreateIdentityProvider, self).get_parser(prog_name) parser = super(CreateIdentityProvider, self).get_parser(prog_name)
parser.add_argument( parser.add_argument(
'identity_provider_id', 'identity_provider_id',
metavar='<identity_provider_id>', metavar='<identity-provider-id>',
help='New identity provider ID (must be unique)' help='New identity provider ID (must be unique)'
) )
parser.add_argument( parser.add_argument(
@ -71,7 +71,7 @@ class CreateIdentityProvider(show.ShowOne):
class DeleteIdentityProvider(command.Command): class DeleteIdentityProvider(command.Command):
"""Delete identity provider""" """Delete an identity provider"""
log = logging.getLogger(__name__ + '.DeleteIdentityProvider') log = logging.getLogger(__name__ + '.DeleteIdentityProvider')
@ -79,8 +79,8 @@ class DeleteIdentityProvider(command.Command):
parser = super(DeleteIdentityProvider, self).get_parser(prog_name) parser = super(DeleteIdentityProvider, self).get_parser(prog_name)
parser.add_argument( parser.add_argument(
'identity_provider', 'identity_provider',
metavar='<identity_provider>', metavar='<identity-provider-id>',
help='ID of the identity provider to be deleted', help='Identity provider ID to delete',
) )
return parser return parser
@ -109,7 +109,7 @@ class ListIdentityProvider(lister.Lister):
class SetIdentityProvider(command.Command): class SetIdentityProvider(command.Command):
"""Set identity provider""" """Set identity provider properties"""
log = logging.getLogger(__name__ + '.SetIdentityProvider') log = logging.getLogger(__name__ + '.SetIdentityProvider')
@ -117,8 +117,8 @@ class SetIdentityProvider(command.Command):
parser = super(SetIdentityProvider, self).get_parser(prog_name) parser = super(SetIdentityProvider, self).get_parser(prog_name)
parser.add_argument( parser.add_argument(
'identity_provider', 'identity_provider',
metavar='<identity_provider>', metavar='<identity-provider-id>',
help='ID of the identity provider to be changed', help='Identity provider ID to change',
) )
enable_identity_provider = parser.add_mutually_exclusive_group() enable_identity_provider = parser.add_mutually_exclusive_group()
@ -155,7 +155,7 @@ class SetIdentityProvider(command.Command):
class ShowIdentityProvider(show.ShowOne): class ShowIdentityProvider(show.ShowOne):
"""Show identity provider""" """Show identity provider details"""
log = logging.getLogger(__name__ + '.ShowIdentityProvider') log = logging.getLogger(__name__ + '.ShowIdentityProvider')
@ -163,8 +163,8 @@ class ShowIdentityProvider(show.ShowOne):
parser = super(ShowIdentityProvider, self).get_parser(prog_name) parser = super(ShowIdentityProvider, self).get_parser(prog_name)
parser.add_argument( parser.add_argument(
'identity_provider', 'identity_provider',
metavar='<identity_provider>', metavar='<identity-provider-id>',
help='ID of the identity provider to be displayed', help='Identity provider ID to show',
) )
return parser return parser

View File

@ -36,7 +36,7 @@ class CreateVolume(show.ShowOne):
parser.add_argument( parser.add_argument(
'name', 'name',
metavar='<name>', metavar='<name>',
help='Name of the volume', help='Name of the new volume',
) )
parser.add_argument( parser.add_argument(
'--size', '--size',
@ -48,7 +48,7 @@ class CreateVolume(show.ShowOne):
parser.add_argument( parser.add_argument(
'--snapshot-id', '--snapshot-id',
metavar='<snapshot-id>', metavar='<snapshot-id>',
help='ID of the snapshot', help='Use <snapshot-id> as source of new volume',
) )
parser.add_argument( parser.add_argument(
'--description', '--description',
@ -73,7 +73,7 @@ class CreateVolume(show.ShowOne):
parser.add_argument( parser.add_argument(
'--availability-zone', '--availability-zone',
metavar='<availability-zone>', metavar='<availability-zone>',
help='Availability zone to use', help='Create new volume in <availability-zone>',
) )
parser.add_argument( parser.add_argument(
'--property', '--property',
@ -85,12 +85,12 @@ class CreateVolume(show.ShowOne):
parser.add_argument( parser.add_argument(
'--image', '--image',
metavar='<image>', metavar='<image>',
help='Reference to a stored image', help='Use <image> as source of new volume',
) )
parser.add_argument( parser.add_argument(
'--source', '--source',
metavar='<volume>', metavar='<volume>',
help='Source for volume clone', help='Volume to clone (name or ID)',
) )
return parser return parser
@ -143,7 +143,7 @@ class CreateVolume(show.ShowOne):
class DeleteVolume(command.Command): class DeleteVolume(command.Command):
"""Delete volume""" """Delete a volume"""
log = logging.getLogger(__name__ + '.DeleteVolume') log = logging.getLogger(__name__ + '.DeleteVolume')
@ -152,7 +152,7 @@ class DeleteVolume(command.Command):
parser.add_argument( parser.add_argument(
'volume', 'volume',
metavar='<volume>', metavar='<volume>',
help='Name or ID of volume to delete', help='Volume to delete (name or ID)',
) )
parser.add_argument( parser.add_argument(
'--force', '--force',
@ -271,7 +271,7 @@ class SetVolume(command.Command):
parser.add_argument( parser.add_argument(
'volume', 'volume',
metavar='<volume>', metavar='<volume>',
help='Name or ID of volume to change', help='Volume to change (name or ID)',
) )
parser.add_argument( parser.add_argument(
'--name', '--name',
@ -315,7 +315,7 @@ class SetVolume(command.Command):
class ShowVolume(show.ShowOne): class ShowVolume(show.ShowOne):
"""Show specific volume""" """Show volume details"""
log = logging.getLogger(__name__ + '.ShowVolume') log = logging.getLogger(__name__ + '.ShowVolume')
@ -324,7 +324,7 @@ class ShowVolume(show.ShowOne):
parser.add_argument( parser.add_argument(
'volume', 'volume',
metavar='<volume>', metavar='<volume>',
help='Name or ID of volume to display', help='Volume to display (name or ID)',
) )
return parser return parser
@ -357,7 +357,7 @@ class UnsetVolume(command.Command):
parser.add_argument( parser.add_argument(
'volume', 'volume',
metavar='<volume>', metavar='<volume>',
help='Name or ID of volume to change', help='Volume to change (name or ID)',
) )
parser.add_argument( parser.add_argument(
'--property', '--property',