ParsedArguments¶
Import: import system.cli;
Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.
ParsedArguments¶
Immutable parsing outcome for one command scope, including explicit-value provenance and child matches.
is_help¶
True when --help or -h was requested, including for a subcommand.
is_version¶
True when --version or -V was requested.
help_text¶
Deterministic generated help when is_help is true; otherwise empty.
version_text¶
Generated version text when is_version is true; otherwise empty.
command_name¶
Command name for successful value outcomes; empty for help/version outcomes.
subcommand¶
Selected child scope, or None when no subcommand was invoked.
is_present¶
True only for arguments explicitly supplied on the command line, excluding defaults.
get_string¶
Returns a string positional or the last occurrence of a string option; missing values and wrong getter types return errors.
get_strings¶
Copies all string values in order, including an optional default when no value was supplied.
get_int¶
Returns the last parsed integer; every occurrence has already passed decimal 32-bit validation.
get_ints¶
Copies every parsed integer occurrence in order.
get_bool¶
Returns the declared boolean flag, false when omitted; wrong getter types return errors.
config_keys¶
Copies declared names in declaration order for typed configuration merging; is_present distinguishes explicit values.
config_value¶
Returns the final scalar value for configuration merging, including typed options.