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

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

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.1.0
    • Component/s: tools
    • Security Level: Public
    • Labels:
      None
    • Environment:
      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

      # Subject Project Status CR V
      For Gerrit Dashboard: &For+MB-7957=message:MB-7957

        Activity

        Hide
        maria Maria McDuff (Inactive) added a comment -

        per bug scrub: Bin — is this a minor fix? can we get this in for 2.0.2? Thanks.

        Show
        maria Maria McDuff (Inactive) added a comment - per bug scrub: Bin — is this a minor fix? can we get this in for 2.0.2? Thanks.
        Show
        bcui Bin Cui added a comment - http://review.couchbase.org/#/c/25555/
        Hide
        maria Maria McDuff (Inactive) added a comment -

        pls verify in latest 2.0.2 build. already merged.

        Show
        maria Maria McDuff (Inactive) added a comment - pls verify in latest 2.0.2 build. already merged.
        Hide
        shashank Shashank Gupta added a comment -

        Verified with build 2.0.2-767-rel.

        Show
        shashank Shashank Gupta added a comment - Verified with build 2.0.2-767-rel.

          People

          • Assignee:
            shashank Shashank Gupta
            Reporter:
            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