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

Inconsistent behavior of Command Line Tools

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 5.5.0
    • 3.1.0
    • tools
    • Security Level: Public
    • None
    • RHEL 6.6 x64

    Description

      Hello,

      the tools are sometimes behaving different regarding the output (stdout/stderr) and error codes.

      Here an example:

      • cbepctl: Returns the output for the parameter --help on stderr by returning 1 as the error code
      • couchbase-cli: Returns the output for the parameter --help on stdout by returning the error code of 2

      The customer mentioned that other tools are printing it to the stdout.

      I am completely aware of that his is just a cosmetical thing.

      It might be just the case that --help is not explicitly implemented and so the fallback is printing out the help text.

      However, the customer has the feeling that it is harder to automate some tasks by using our CLI tools because they behave sometimes inconsistent. (Checking error codes in scripts, ...).

      BTW: The customer referenced to 'docopt.org'.

      Feedback is highly appreciated.

      Regards,
      David

      Attachments

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

        Activity

          People

            mikew Mike Wiederhold [X] (Inactive)
            dmaier David Maier (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty