Details
Description
Reproduction steps:
1. Create a bucket with non-default number of replicas. e.g. 2 or 3 replicas.
2. Use the couchbase-cli to edit some other bucket parameter e.g. --enable-flush.
3. Value of number of replicas gets reset to the default value of 1.
I think, this happening because couchbase-cli/buckets.py sets bucketreplication to 1 and uses it if bucket-replica is not passed. But, I am not familiar with this code so I could be wrong.
Also, the bucket create and edit command help message displays duplicate lines for
--bucket-replica=COUNT. This should be fixed.