Skip to content
Myr

Reword description of combining short options (#1345)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* Reword description of combining short options * Remove extra text

authored by John Gee · committed by GitHub · parent ce3aebe · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:Readme.md+1 added-1 removed
74 unmodified lines
75Options are defined with the `.option()` method, also serving as documentation for the options. Each option can have a short flag (single character) and a long name, separated by a comma or space or vertical bar ('|').7677The options can be accessed as properties on the Command object. Multi-word options such as "--template-engine" are camel-cased, becoming `program.templateEngine` etc. See also optional new behaviour to [avoid name clashes](#avoiding-option-name-clashes).7879Multiple short flags may optionally be combined in a single argument following the dash: boolean flags, the last flag may take a value, and the value.79Multiple short flags may optionally be combined in a single argument following the dash: boolean flags, followed by a single option taking a value (possibly followed by the value).80For example `-a -b -p 80` may be written as `-ab -p80` or even `-abp80`.8182You can use `--` to indicate the end of the options, and any remaining arguments will be used without being interpreted.83This is particularly useful for passing options through to another
693 unmodified lines