Description
example:
[root@localhost bin]# ./couchbase-cli -H --server-add-password=password
ERROR: '-H' is not a couchbase-cli command; please see -h for more help.
but without any additional params with -H
[root@localhost bin]# ./couchbase-cli -H
usage: couchbase-cli COMMAND CLUSTER [OPTIONS]
CLUSTER is --cluster=HOST[:PORT] or -c HOST[:PORT]
COMMANDs include
server-list list all servers in a cluster
server-info show details on one server
server-add add one or more servers to the cluster
server-readd readd a server that was failed over
rebalance start a cluster rebalancing
rebalance-stop stop current cluster rebalancing
rebalance-status show status of current cluster rebalancing
failover failover one or more servers
cluster-init set the username,password and port of the cluster
node-init set node specific parameters
bucket-list list all buckets in a cluster
bucket-create add a new bucket to the cluster
bucket-edit modify an existing bucket
bucket-delete delete an existing bucket
bucket-flush flush a given bucket
help show longer usage/help and examples
it works with option -h with/out any params:
[root@localhost bin]# ./couchbase-cli -h --server-add-password=password
couchbase-cli - command-line cluster administration tool
usage: couchbase-cli COMMAND CLUSTER [OPTIONS]
COMMAND:
server-list list all servers in a cluster
server-info show details on one server
server-add add one or more servers to the cluster
server-readd readd a server that was failed over
rebalance start a cluster rebalancing
rebalance-stop stop current cluster rebalancing
rebalance-status show status of current cluster rebalancing
failover failover one or more servers
cluster-init set the username,password and port of the cluster
node-init set node specific parameters
bucket-list list all buckets in a cluster
bucket-create add a new bucket to the cluster
bucket-edit modify an existing bucket
bucket-delete delete an existing bucket
bucket-flush flush a given bucket
help show longer usage/help and examples
CLUSTER:
--cluster=HOST[:PORT] or -c HOST[:PORT]
OPTIONS:
....
expect to get the same behavior for -h & -H param