Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-22108

Rename options in CLI

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0
    • cli
    • Docs Required, Release Notes Required

    Description

      The original CLI IEP offers both long and short options for some commands, for example
      --cluster-endpoint-url localhost:8080 and
      -u localhost:8080

      The CLI is becoming more complex than it was before. We add new commands and new options constantly. Now we can observe some confusions in short options across some commands.

      The proposal for CLI short options is to define the following conventions:

      • Use exactly one letter for the short options.
      • Do not overwrite the one if it is already defined for some command.
      • Use short options only for commands that will probably be used frequently.

      Proposed short options:
      -n for node-name
      -h for help
      -v for verbose
      -u for user
      -p for password

      All other short options should be dropped.

      Also some common options might be shorten:

      • cluster-endpoint-url, node-url → url
      • cluster-config → config
      • cluster-config-file → config-file
      • script-file → file
      • cluster-name, node-name → name
      • meta-storage-node → ms-node

      Attachments

        Issue Links

          Activity

            People

              aleksandr.pakhomov Aleksandr
              aleksandr.pakhomov Aleksandr
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m