From c9f925339226d7b1d11b9a3890bd38ec292b8c47 Mon Sep 17 00:00:00 2001 From: Kristian Aune Date: Tue, 15 Oct 2019 15:24:02 +0200 Subject: less dangerous. better text for vespa-set-node-state --- .../src/perl/lib/Yahoo/Vespa/ContentNodeSelection.pm | 14 +++++++------- .../src/perl/test/Yahoo/Vespa/Bin/SetNodeStateTest.pl | 12 ++++++------ 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'vespaclient') diff --git a/vespaclient/src/perl/lib/Yahoo/Vespa/ContentNodeSelection.pm b/vespaclient/src/perl/lib/Yahoo/Vespa/ContentNodeSelection.pm index d23471c8910..13d8d8ea5f9 100644 --- a/vespaclient/src/perl/lib/Yahoo/Vespa/ContentNodeSelection.pm +++ b/vespaclient/src/perl/lib/Yahoo/Vespa/ContentNodeSelection.pm @@ -51,25 +51,25 @@ sub registerCommandLineArguments { # (Flags) setStringOption( ['c', 'cluster'], \$CLUSTER, - 'Cluster name of cluster to query. ' + 'Cluster name. ' . 'If unspecified, and vespa is installed on current node, ' . 'information will be attempted auto-extracted'); setFlagOption( ['f', 'force'], \$FORCE, - 'Force the execution of a dangerous command.'); + 'Force execution'); if (($flags & CLUSTER_ONLY_LIMITATION) == 0) { setStringOption( ['t', 'type'], \$NODE_TYPE, - 'Node type to query. This can either be \'storage\' or ' - . '\'distributor\'. If not specified, the operation will show ' - . 'state for all types.'); + 'Node type - can either be \'storage\' or ' + . '\'distributor\'. If not specified, the operation will use ' + . 'state for both types.'); setIntegerOption( ['i', 'index'], \$INDEX, - 'The node index to show state for. If not specified, all nodes ' - . 'found running on this host will be shown.'); + 'Node index. If not specified, all nodes ' + . 'found running on this host will be used.'); } } sub visit { # (Callback) diff --git a/vespaclient/src/perl/test/Yahoo/Vespa/Bin/SetNodeStateTest.pl b/vespaclient/src/perl/test/Yahoo/Vespa/Bin/SetNodeStateTest.pl index b78dc66a311..97e335e1313 100644 --- a/vespaclient/src/perl/test/Yahoo/Vespa/Bin/SetNodeStateTest.pl +++ b/vespaclient/src/perl/test/Yahoo/Vespa/Bin/SetNodeStateTest.pl @@ -70,15 +70,15 @@ Options related to operation visibility: the cluster before returning. Node selection options. By default, nodes running locally will be selected: - -c --cluster : Cluster name of cluster to query. If unspecified, + -c --cluster : Cluster name. If unspecified, and vespa is installed on current node, information will be attempted auto-extracted - -f --force : Force the execution of a dangerous command. - -t --type : Node type to query. This can either be 'storage' or + -f --force : Force execution + -t --type : Node type - can either be 'storage' or 'distributor'. If not specified, the operation will - show state for all types. - -i --index : The node index to show state for. If not specified, - all nodes found running on this host will be shown. + use state for both types. + -i --index : Node index. If not specified, + all nodes found running on this host will be used. Config retrieval options: --config-server : Host name of config server to query -- cgit v1.2.3