The type of parse parameter
Optional ReadonlyappendAllows appending elements if supplied multiple times.
Optional ReadonlybreakTrue to break the parsing loop after parsing the option.
Optional ReadonlychoicesThe allowed parameter values.
Optional ReadonlyclusterThe letters used for clustering in short-option style (e.g., 'fF').
Letters are subject to the same restrictions as OptionAttributes.names.
Optional ReadonlyclusterThe prefix of cluster arguments. If set, then eligible arguments that have this prefix will be considered a cluster. Has precedence over OptionAttributes.optionPrefix.
Optional ReadonlycompleteA custom callback for word completion.
Optional ReadonlydefaultTe default value or a callback that returns the default value.
The default value is set at the end of the parsing loop if the option was not supplied. You may use a callback to inspect parsed values and determine the default value based on those values.
Optional ReadonlydeprecatedThe option deprecation notice.
Optional ReadonlyexampleThe example value to display in the parameter column or in usage statements.
Optional ReadonlygroupThe option group in the help message.
Use the value null to hide it from the help message.
Optional ReadonlyinlineWhether inline parameters should be disallowed or required for this option.
Can be false to disallow or 'always' to always require.
It can also be a record that maps option names to one of the above, indicating whether the corresponding name disallows or requires inline parameters.
Optional ReadonlylayoutThe option-specific layout settings.
Optional ReadonlylimitThe maximum allowed number of elements.
Optional ReadonlylinkA hyperlink to an external resource.
Optional ReadonlymappingA record that maps parameter values to option values.
Optional ReadonlymarkerThe marker(s) to delimit option parameters. If set, then all arguments appearing after/within the marker(s) will pertain to this option. It is subject to the same restrictions as OptionAttributes.names.
Optional ReadonlynamesThe option names, as they appear on the command-line (e.g. -h or --help).
Names cannot contain the equals sign =, since it may be used as option-parameter separator.
nulls can be specified in order to skip the respective "slot" in the help message names column.
Optional ReadonlynormalizeA normalization function applied to parameters before they get validated and/or parsed.
Optional ReadonlyoptionThe prefix of option names. If set, then arguments that have this prefix will always be considered an option name.
Optional ReadonlyoptionsThe subcommand's options. It can also be a module path or a callback that returns the options.
Optional ReadonlyparamThe function's parameter count:
Infinity, the option accepts unlimited parameters.min and max parameters.Optional ReadonlyparamThe parameter name to display in the parameter column or in usage statements. Overrides OptionAttributes.example in usage statements.
Optional ReadonlyparseA custom callback for parsing the option parameter(s).
Optional ReadonlypositionalWhether the option accepts positional arguments.
If there are multiple positional options, their declaration order determines their relative position in the command line. A variadic option will take all remaining positional arguments. Otherwise, if there are more arguments than options, the last such option will take the excess.
We recommend also setting OptionAttributes.preferredName to some explanatory name.
OptionalpreferredA name to be displayed in error and help messages in cases where one is not available (e.g., when evaluating option requirements or processing positional arguments). It is not validated and can be anything.
If not specified, the first name in the OptionAttributes.names array will be used.
Optional ReadonlyregexThe regular expression that parameters should match.
Optional ReadonlyrequiredTrue if the option is always required.
Optional ReadonlyrequiredThe conditional requirements.
Optional ReadonlyrequiresThe forward requirements.
Optional ReadonlysaveWhether to save the message in the option value instead of throwing it.
Optional ReadonlysectionsThe help sections to be rendered.
Optional ReadonlyseparatorThe parameter value separator.
OptionalskipThe number of remaining arguments to skip. It is meant to be changed by the callback. (The parser does not alter this value.)
Optional ReadonlysourcesThe names of data sources to try reading from (in that order), if the option was not supplied
on the command line. A string means an environment variable, while a URL means a local file.
Environment variable names are subject to the same restrictions as OptionAttributes.names.
Has precedence over OptionAttributes.stdin.
Optional ReadonlystdinTrue to read data from the standard input, if the option was not supplied.
Warning: this may block the application if OptionAttributes.required is set and the terminal is interactive.
Optional ReadonlystylesThe option display styles.
Optional ReadonlysynopsisThe option synopsis.
Optional ReadonlyuniqueTrue if duplicate elements should be removed.
Optional ReadonlyusageThe parameter name to display in usage statements. Overrides OptionAttributes.example and OptionAttributes.paramName in usage statements.
Optional ReadonlyuseWhether to use the next argument as the name of a subcommand. Has precedence over OptionAttributes.useFilter.
Optional ReadonlyuseWhether to use the remaining arguments as option filter.
Optional ReadonlyversionThe version information (e.g., a semantic version).
Defines all option attributes.