-
Notifications
You must be signed in to change notification settings - Fork 0
Parameters
NebelFox edited this page Apr 5, 2022
·
3 revisions
Mandatory part: positional-name
Optional parts:
- value type:
name:type-name
. Defaults tostring
- collective tag:
name...
or typed variantname:type-name...
- optional tag:
[name]
All the optional parts can be combined.
Examples: count:int
, [optional-names...]
Note. The collective tag results into array of parameter type instances. e.g.
name... -> string[]
,digits:int... -> int[]
.
--switch-name
- as simple as that, e.g. --verbose
, --debug
, --dry-run
.
Just a switch, followed by a positional, and optional default value after =
,
e.g. --option param:type...=default
, --option [param...]
.
If default value omitted, it's set to null
.
- General:
- File Specification:
- Templates:
- Tips