bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: argmatch: accept perfect matches in documented arglists


From: Bruno Haible
Subject: Re: argmatch: accept perfect matches in documented arglists
Date: Sat, 27 Apr 2019 14:33:04 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-141-generic; KDE/5.18.0; x86_64; ; )

Hi Akim,

Sorry but I don't understand this:

> $ bison --trace=help
> bison: invalid argument ‘help’ for ‘--trace’
> Valid arguments are:
>   - ‘none        - no traces’
>   - ‘scan        - grammar scanner traces’
>   - ‘parse       - grammar parser traces’
>   - ‘parse-stats - grammar parser stats’
>   - ‘automaton   - construction of the automaton’
>   - ‘bitsets     - use of bitsets’
>   - ‘closure     - input/output of closure’
>   - ‘grammar     - reading, reducing the grammar’
>   - ‘resource    - memory consumption (where available)’
>   - ‘sets        - grammar sets: firsts, nullable etc.’
>   - ‘muscles     - m4 definitions passed to the skeleton’
>   - ‘tools       - m4 invocation’
>   - ‘m4          - m4 traces’
>   - ‘skeleton    - skeleton postprocessing’
>   - ‘time        - time consumption’
>   - ‘ielr        - IELR conversion’
>   - ‘all         - all of the above’

Why not:

$ bison --trace=help
bison: invalid argument ‘help’ for ‘--trace’
Valid arguments are:
  - ‘none’        - no traces
  - ‘scan’        - grammar scanner traces
  - ‘parse’       - grammar parser traces
  - ‘parse-stats’ - grammar parser stats
  - ‘automaton’   - construction of the automaton
  - ‘bitsets’     - use of bitsets
  - ‘closure’     - input/output of closure
  - ‘grammar’     - reading, reducing the grammar
  - ‘resource’    - memory consumption (where available)
  - ‘sets’        - grammar sets: firsts, nullable etc.
  - ‘muscles’     - m4 definitions passed to the skeleton
  - ‘tools’       - m4 invocation
  - ‘m4’          - m4 traces
  - ‘skeleton’    - skeleton postprocessing
  - ‘time’        - time consumption
  - ‘ielr’        - IELR conversion
  - ‘all’         - all of the above

> +   Accept arguments with a documentation string, such as:
> +     "foo - a first feature" -> 0
> +     "bar - a second feature" -> 1

It doesn't make sense to me to expect that the user will type
  bison --trace='none        - no traces'
when they can type
  bison --trace=none

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]