Uploaded image for project: 'Commons CLI'
  1. Commons CLI
  2. CLI-160

Partial matching for long options

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • 1.3
    • Parser
    • None

    Description

      Partial matching is a common feature among command line processing tools. It allows to use shorter option names as long as the abbreviation is not ambiguous.

      For example on Debian

      ls --he

      is equivalent to

      ls --help

      but

      ls --h

      returns the error "option `--h' is ambiguous", because 'h' is also the prefix of the --hide option.

      Attachments

        Activity

          People

            ebourg Emmanuel Bourg
            ebourg Emmanuel Bourg
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: