Expand description
Command line parsing compatible with minimist (as re-exported by zx) and
zx’s parseArgv wrapper.
Results are returned as a serde_json::Value object so that repeated
flags (arrays), dotted keys (nested objects), numbers, booleans and strings
can all be represented. Positional arguments live under "_".
Structs§
- Argv
Options - Options for
minimistandparse_argv.
Enums§
- Booleans
- Which flags are booleans.
Functions§
- argv
- Parse the current process arguments (without the program name).
- minimist
- Parse
argslike theminimistpackage. - parse_
argv - zx
parseArgv(args, opts, defs): runminimistand merge the result intodefs, optionally camel-casing keys and parsing boolean strings.
Type Aliases§
- Unknown
Fn - Callback for flags and positionals that were not declared; returning
falsedrops the argument.