Skip to main content Crate deno_cli_parser Copy item path Source 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. 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. 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. parse Parse command-line arguments against a command definition.