Non Nullable Option Builder
Builder for non-nullable command-line options. This type is returned by .default() and .required() to ensure type safety. It delegates most operations to the underlying OptionBuilder while ensuring type safety.
Functions
Creates an "at least one" constraint with other options. At least one option from this group (including this option) must be provided.
Creates an "at most one" constraint with other options. At most one option from this group (including this option) may be provided.
Specifies that this option conflicts with other options. If this option is provided along with any of the conflicting options, parsing will fail with an error.
Converts non-nullable string option to non-nullable double option.
Creates an "exactly one" constraint with other options. Exactly one option from this group (including this option) must be provided.
Converts non-nullable string option to non-nullable float option.
Configures this option to read its value from an environment variable. If the command-line option is not provided, the specified environment variable will be checked for a value.
Sets the help text for this option. The help text is displayed when the user requests help information.
Marks this option as hidden from help output. Hidden options are not displayed in help text but remain functional.
Converts non-nullable string option to non-nullable integer option.
Converts non-nullable string option to non-nullable long option.
Maps the parsed value, allowing nullable output.
Maps the parsed value using the specified transformation function. Preserves non-nullable type when transformation returns non-null.
Makes a non-nullable boolean option negatable with custom prefix.
Restricts non-nullable string option to one of the specified allowed values.
Restricts this option to only be available in specific domains. When specified, this option will only be recognized when one of the referenced domains is active.
Provides the property delegate implementation for non-nullable options. This method is called automatically by Kotlin's property delegation system. It delegates to the underlying OptionBuilder but ensures the returned value is non-null.
Makes this option required if all of the referenced options are present. This creates a conditional requirement where providing all of the trigger options makes this option mandatory.
Makes this option required if any of the referenced options are present. This creates a conditional requirement where providing any of the trigger options makes this option mandatory.
Makes this option required if the referenced option's value matches the predicate. This creates a value-based conditional requirement.
Adds multiple validations for this option's value. All validations are applied to the parsed non-null value.
Adds validation for this option's value. The validation is applied to the parsed non-null value.