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

Disallow argument prefixing in couchbase-cli

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Done
    • Major
    • feature-backlog
    • 5.0.0
    • tools
    • None

    Description

      By default argparse will recognize an argument prefix as long as it is unique. This allows users to specify only part of the long option. We want to disallow this and force typing the entire option so that we don't accidentally break scripts as new arguments are added. For example,

      --cluster-fts-ramsize

      and

      --cluster-fts

      would both be acceptable in the cluster-init command, but we only want --cluster-fts-ramsize to be accepted.

      Attachments

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

        Activity

          People

            carlos.gonzalez Carlos Gonzalez Betancort (Inactive)
            mikew Mike Wiederhold [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty