Update OSC metavars
OpenstackClient has a consistent pattern for the metavars on their arguments. Senlinclient's plugin should follow that pattern. Change-Id: I5e124a59ce17b26f1a7a3176dff7c4416f1f3e71 Blueprint: senlin-support-python-openstackclient
This commit is contained in:
@@ -43,7 +43,7 @@ class ListAction(lister.Lister):
|
||||
)
|
||||
parser.add_argument(
|
||||
'--sort',
|
||||
metavar='<key:dir>',
|
||||
metavar='<key>[:<direction>]',
|
||||
help=_("Sorting option which is a string containing a list of "
|
||||
"keys separated by commas. Each key can be optionally "
|
||||
"appended by a sort direction (:asc or :desc). The valid "
|
||||
|
||||
@@ -46,7 +46,7 @@ class ListCluster(lister.Lister):
|
||||
)
|
||||
parser.add_argument(
|
||||
'--sort',
|
||||
metavar='<key:dir>',
|
||||
metavar='<key>[:<direction>]',
|
||||
help=_("Sorting option which is a string containing a list of "
|
||||
"keys separated by commas. Each key can be optionally "
|
||||
"appended by a sort direction (:asc or :desc). The valid "
|
||||
@@ -190,7 +190,7 @@ class CreateCluster(show.ShowOne):
|
||||
)
|
||||
parser.add_argument(
|
||||
'name',
|
||||
metavar='<cluster_name>',
|
||||
metavar='<cluster-name>',
|
||||
help=_('Name of the cluster to create')
|
||||
)
|
||||
return parser
|
||||
@@ -352,7 +352,7 @@ class ResizeCluster(command.Command):
|
||||
)
|
||||
parser.add_argument(
|
||||
'--min-step',
|
||||
metavar='<min_step>',
|
||||
metavar='<min-step>',
|
||||
type=int,
|
||||
help=_('An integer specifying the number of nodes for adjustment '
|
||||
'when <PERCENTAGE> is specified')
|
||||
@@ -603,7 +603,7 @@ class ClusterNodeList(lister.Lister):
|
||||
)
|
||||
parser.add_argument(
|
||||
'--sort',
|
||||
metavar='<key:direction>',
|
||||
metavar='<key>[:<direction>]',
|
||||
help=_('Sorting option which is a string containing a list of '
|
||||
'keys separated by commas. Each key can be optionally '
|
||||
'appended by a sort direction (:asc or :desc)')
|
||||
|
||||
@@ -42,7 +42,7 @@ class ClusterPolicyList(lister.Lister):
|
||||
)
|
||||
parser.add_argument(
|
||||
'--sort',
|
||||
metavar='<sort_string>',
|
||||
metavar='<key>[:<direction>]',
|
||||
help=_("Sorting option which is a string containing a list of "
|
||||
"keys separated by commas. Each key can be optionally "
|
||||
"appended by a sort direction (:asc or :desc). The valid "
|
||||
|
||||
@@ -54,7 +54,7 @@ class ListEvent(lister.Lister):
|
||||
)
|
||||
parser.add_argument(
|
||||
'--sort',
|
||||
metavar='<key:dir>',
|
||||
metavar='<key>[:<direction>]',
|
||||
help=_("Sorting option which is a string containing a list of "
|
||||
"keys separated by commas. Each key can be optionally "
|
||||
"appended by a sort direction (:asc or :desc). The valid "
|
||||
|
||||
@@ -51,7 +51,7 @@ class ListNode(lister.Lister):
|
||||
)
|
||||
parser.add_argument(
|
||||
'--sort',
|
||||
metavar='<key:direction>',
|
||||
metavar='<key>[:<direction>]',
|
||||
help=_("Sorting option which is a string containing a list of "
|
||||
"keys separated by commas. Each key can be optionally "
|
||||
"appended by a sort direction (:asc or :desc). The valid "
|
||||
@@ -200,7 +200,7 @@ class CreateNode(show.ShowOne):
|
||||
)
|
||||
parser.add_argument(
|
||||
'name',
|
||||
metavar='<node_name>',
|
||||
metavar='<node-name>',
|
||||
help=_('Name of the node to create')
|
||||
)
|
||||
return parser
|
||||
@@ -235,7 +235,7 @@ class UpdateNode(show.ShowOne):
|
||||
)
|
||||
parser.add_argument(
|
||||
'--profile',
|
||||
metavar='<profile_id>',
|
||||
metavar='<profile-id>',
|
||||
help=_('ID of new profile to use')
|
||||
)
|
||||
parser.add_argument(
|
||||
|
||||
@@ -46,7 +46,7 @@ class ListPolicy(lister.Lister):
|
||||
)
|
||||
parser.add_argument(
|
||||
'--sort',
|
||||
metavar='<key:dir>',
|
||||
metavar='<key>[:<direction>]',
|
||||
help=_("Sorting option which is a string containing a list of "
|
||||
"keys separated by commas. Each key can be optionally "
|
||||
"appended by a sort direction (:asc or :desc). The valid "
|
||||
@@ -160,7 +160,7 @@ class CreatePolicy(show.ShowOne):
|
||||
parser = super(CreatePolicy, self).get_parser(prog_name)
|
||||
parser.add_argument(
|
||||
'--spec-file',
|
||||
metavar='<spec_file>',
|
||||
metavar='<spec-file>',
|
||||
required=True,
|
||||
help=_('The spec file used to create the policy')
|
||||
)
|
||||
|
||||
@@ -49,7 +49,7 @@ class PolicyTypeShow(format_utils.YamlFormat):
|
||||
parser = super(PolicyTypeShow, self).get_parser(prog_name)
|
||||
parser.add_argument(
|
||||
'type_name',
|
||||
metavar='<type_name>',
|
||||
metavar='<type-name>',
|
||||
help=_('Policy type to retrieve')
|
||||
)
|
||||
return parser
|
||||
|
||||
@@ -95,7 +95,7 @@ class ListProfile(lister.Lister):
|
||||
)
|
||||
parser.add_argument(
|
||||
'--sort',
|
||||
metavar='<key:dir>',
|
||||
metavar='<key>[:<direction>]',
|
||||
help=_("Sorting option which is a string containing a list of keys"
|
||||
" separated by commas. Each key can be optionally appended "
|
||||
"by a sort direction (:asc or :desc). The valid sort_keys "
|
||||
@@ -230,7 +230,7 @@ class CreateProfile(show.ShowOne):
|
||||
)
|
||||
parser.add_argument(
|
||||
'name',
|
||||
metavar='<profile_name>',
|
||||
metavar='<profile-name>',
|
||||
help=_('Name of the profile to create')
|
||||
)
|
||||
return parser
|
||||
|
||||
@@ -49,7 +49,7 @@ class ProfileTypeShow(format_utils.YamlFormat):
|
||||
parser = super(ProfileTypeShow, self).get_parser(prog_name)
|
||||
parser.add_argument(
|
||||
'type_name',
|
||||
metavar='<TYPE_NAME>',
|
||||
metavar='<type-name>',
|
||||
help=_('Profile type to retrieve')
|
||||
)
|
||||
return parser
|
||||
|
||||
@@ -56,7 +56,7 @@ class ListReceiver(lister.Lister):
|
||||
)
|
||||
parser.add_argument(
|
||||
'--sort',
|
||||
metavar='<key:dir>',
|
||||
metavar='<key>[:<direction>]',
|
||||
help=_("Sorting option which is a string containing a list of "
|
||||
"keys separated by commas. Each key can be optionally "
|
||||
"appended by a sort direction (:asc or :desc). The valid "
|
||||
|
||||
Reference in New Issue
Block a user