Skip to main content

Crate deno_cli_parser

Crate deno_cli_parser 

Source

Modules§

completions
Shell completion script generators.
convert
Converts a raw ParseResult into the typed Flags struct.
defs
Static command definitions for the Deno CLI.
flags
help
Help text rendering for the Deno CLI parser.

Structs§

ArgDef
Definition of a single CLI argument/flag.
CliError
CommandDef
Definition of a CLI command (root or subcommand). All fields are const-constructible - no heap allocation.
ParseResult
Result of parsing: raw parsed data before conversion to typed Flags.
ParsedArg
A single parsed argument with its values.

Enums§

ArgAction
What the parser does when it encounters this argument.
CliErrorKind
NumArgs
How many values an argument takes.
ValueParser
Declarative value validation, mirroring clap’s value_parser. Applied to each value as it is parsed; an invalid value produces a parse error instead of being silently accepted or coerced downstream.

Functions§

parse
Parse command-line arguments against a command definition.