file: cliparser.aus

class: CliOptions

[127:7] extends: object

CliOptions is a reusable collection of CliOption declarations. It stores the logical option definitions and lazily creates a new Apache Commons CLI Options object whenever parsing or help formatting needs one. That lets callers keep configuring options after adding them without the Java-side option set getting stale.

Members

Methods

class: CliOption

[16:7] extends: object

CliOption describes one command-line option declaration for CliParser. It captures the short name, long name, description, whether the option expects a value, whether it is required, and the display name used for the value in help output. The wrapper stays mutable while the option is being configured, then lazily creates the underlying Apache Commons CLI Option object when the parser needs it.

Members

Methods

class: CliParser

[359:7] extends: object

CliParser parses a list of command-line arguments using a declared CliOptions set and returns a CliParseResult. It wraps Apache Commons CLI through AJI, formats help text on demand, and keeps the public API small and script-friendly while still exposing the raw Apache Options object through CliOptions.rawOptions() for advanced use.

Members

Methods

class: CliParseResult

[207:7] extends: object

CliParseResult exposes the parsed option and argument values returned by Apache Commons CLI using plain Aussom values where possible. Options can be queried by either short or long name, positional arguments are exposed as an Aussom list, and toMap() returns a compact summary of the declared options plus the remaining positional arguments.

Members

Methods