diff --git a/senlinclient/v1/cluster.py b/senlinclient/v1/cluster.py index b43a430c..784d177d 100644 --- a/senlinclient/v1/cluster.py +++ b/senlinclient/v1/cluster.py @@ -243,9 +243,10 @@ class UpdateCluster(command.ShowOne): parser.add_argument( '--metadata', metavar='<"key1=value1;key2=value2...">', - help=_('Metadata values to be attached to the cluster. ' - 'This can be specified multiple times, or once with ' - 'key-value pairs separated by a semicolon'), + help=_("Metadata values to be attached to the cluster. " + "This can be specified multiple times, or once with " + "key-value pairs separated by a semicolon. Use '{}' " + "can clean metadata "), action='append' ) parser.add_argument( diff --git a/senlinclient/v1/node.py b/senlinclient/v1/node.py index a937ab3f..e7e47f28 100644 --- a/senlinclient/v1/node.py +++ b/senlinclient/v1/node.py @@ -247,9 +247,10 @@ class UpdateNode(command.ShowOne): parser.add_argument( '--metadata', metavar='<"key1=value1;key2=value2...">', - help=_('Metadata values to be attached to the node. ' - 'Metadata can be specified multiple times, or once with ' - 'key-value pairs separated by a semicolon'), + help=_("Metadata values to be attached to the node. " + "This can be specified multiple times, or once with " + "key-value pairs separated by a semicolon. Use '{}' " + "can clean metadata "), action='append' ) parser.add_argument( diff --git a/senlinclient/v1/profile.py b/senlinclient/v1/profile.py index c0e289a7..3b07469d 100644 --- a/senlinclient/v1/profile.py +++ b/senlinclient/v1/profile.py @@ -284,9 +284,10 @@ class UpdateProfile(command.ShowOne): parser.add_argument( '--metadata', metavar='<"key1=value1;key2=value2...">', - help=_('Metadata values to be attached to the profile. ' - 'This can be specified multiple times, or once with ' - 'key-value pairs separated by a semicolon'), + help=_("Metadata values to be attached to the profile. " + "This can be specified multiple times, or once with " + "key-value pairs separated by a semicolon. Use '{}' " + "can clean metadata "), action='append' ) parser.add_argument( diff --git a/senlinclient/v1/shell.py b/senlinclient/v1/shell.py index 106b4397..33866e3c 100644 --- a/senlinclient/v1/shell.py +++ b/senlinclient/v1/shell.py @@ -199,9 +199,10 @@ def do_profile_show(service, args): @utils.arg('-n', '--name', metavar='', help=_('The new name for the profile.')) @utils.arg('-M', '--metadata', metavar='<"KEY1=VALUE1;KEY2=VALUE2...">', - help=_('Metadata values to be attached to the profile. ' - 'This can be specified multiple times, or once with ' - 'key-value pairs separated by a semicolon.'), + help=_("Metadata values to be attached to the profile. " + "This can be specified multiple times, or once with " + "key-value pairs separated by a semicolon. Use '{}' " + "can clean metadata "), action='append') @utils.arg('id', metavar='', help=_('Name or ID of the profile to update.')) @@ -763,9 +764,10 @@ def do_cluster_run(service, args): @utils.arg('-t', '--timeout', metavar='', help=_('New timeout (in seconds) value for the cluster.')) @utils.arg('-M', '--metadata', metavar='<"KEY1=VALUE1;KEY2=VALUE2...">', - help=_('Metadata values to be attached to the cluster. ' - 'This can be specified multiple times, or once with ' - 'key-value pairs separated by a semicolon.'), + help=_("Metadata values to be attached to the cluster. " + "This can be specified multiple times, or once with " + "key-value pairs separated by a semicolon. Use '{}' " + "can clean metadata "), action='append') @utils.arg('-n', '--name', metavar='', help=_('New name for the cluster to update.')) @@ -1243,9 +1245,10 @@ def do_node_delete(service, args): @utils.arg('-r', '--role', metavar='', help=_('Role for this node in the specific cluster.')) @utils.arg('-M', '--metadata', metavar='<"KEY1=VALUE1;KEY2=VALUE2...">', - help=_('Metadata values to be attached to the node. ' - 'Metadata can be specified multiple times, or once with ' - 'key-value pairs separated by a semicolon.'), + help=_("Metadata values to be attached to the node. " + "This can be specified multiple times, or once with " + "key-value pairs separated by a semicolon. Use '{}' " + "can clean metadata "), action='append') @utils.arg('id', metavar='', help=_('Name or ID of node to update.'))