-
Notifications
You must be signed in to change notification settings - Fork 104
Notation rules
Lloyd Brookes edited this page Jan 13, 2018
·
8 revisions
Notation rules for setting command-line options.
- Argument order is insignificant. Whether you set
--exampleat the beginning or end of the arg list makes no difference. - Options with a type of
Booleando not need to supply a value. Setting--flagor-fwill set that option's value totrue. This is the only type with special behaviour. - Three ways to set an option value
--option value--option=value-o value
- Two ways to a set list of values (on options with multiple set)
--list one two three--list one --list two --list three
- Short options (alias) can be set in groups. The following are equivalent:
-a -b -c-abc