Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-7957

couchbase-cli, different behavior for param -H/-h with/out additional params.

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Major
    • 2.1.0
    • 2.1.0
    • tools
    • Security Level: Public
    • None
    • 2.0.2-741

    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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            shashank Shashank Gupta
            andreibaranouski Andrei Baranouski
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty