scoop:scoop.cli:0.1.0
scoop.cli
API
-
annotation
CliArgument
Assigns a field or property a zero-based positional argument index and its help presentation.
-
interface
CliArguments
Declares the argument layout and binds collected fields to an application value.
-
struct
CliConfig
Program name and summary displayed in help.
-
enum
CliElementShape
Acceptable text for each occurrence of a repeated field.
-
struct
CliEntry
Layout and help text for one field. defaultText is for display only.
-
class
CliFieldParser
A field parser with an explicit token shape and conversion function.
-
class
CliFieldValues
Occurrences of a supplied field. Reading or converting a value does not consume it.
-
annotation
CliFlag
Describes positive and optional negative spellings for a Boolean field or property. Flags consume no separate value token.
-
annotation
CliIgnore
Exclude this member from the generated argument layout.
- struct CliOccurrence
-
annotation
CliOption
Describes a named value option on a field or property. Help-related text only affects presentation; missing values use the model constructor's defaults.
-
class
CliParseException
A command-line error with its source field path and original token, when present.
-
class
CliParser
Validates the layout once and reuses it for subsequent parsing and help.
-
object
CliParsers
Built-in parsers used by generated and handwritten bindings.
-
enum
CliResult
The argv scan either produces an application value or requests help.
-
enum
CliRole
How tokens identify a field. Positional indices start at zero.
-
struct
CliSource
Original argv item and its zero-based index in the supplied array.
- enum CliToken
-
interface
CliValueParser
Declares how to collect and convert one field, including user-defined field types.
-
enum
CliValueShape
How the token reader collects one field.
-
class
CliValues
Immutable collected fields, looked up by their source names.