Details
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