-
Notifications
You must be signed in to change notification settings - Fork 23
Command Syntax
Jack Belford edited this page Aug 28, 2017
·
6 revisions
The following explains the syntax used for command arguments:
<> => Argument
- Indicates an argument.
- Example: <argument>
{} => Optional
- All arguments enclosed are optional
- Example: {<argument>}
| => Or
- Used to indicate choice between arguments
- Example: <argument1> | <argument2>
+ => One or many of these
- Used to indicate arguments that can be repeated
- Example: <argument1>+
- Actually means: <argument1> | <argument1> <argument1> | <argument1> <argument1> <argument1> | ...
() => Group
- Used to indicate scope.
- Example: (<argument1> | <argument2>) <argument3>
- Either <argument1> or <argument2> followed by <argument3>
&| => And/Or
- Used to indicate that you can include both arguments or only one
- Example: <argument1> &| <argument2>
- Actually means: (<argument1> <argument2>) | <argument1> | <argument2> | (<argument2> <argument1>)