Expand description
Commonly used CLI primitive types from the focused crates.
Structs§
- Arg
- An owned command-line argument token.
- Boolean
Flag - A flag paired with a boolean state.
- CliOption
- A primitive command-line key/value option.
- CliOption
Name - A validated CLI option name without a leading
--. - Command
Name - A validated command name.
- EnvVar
Name - An owned, validated environment variable name.
- EnvVar
Value - An owned environment variable value.
- Executable
Name - A validated executable or binary name.
- Exit
Code - A portable process exit code primitive.
- Long
Flag - A long flag name such as
verbosefor--verbose. - Option
Value - An owned CLI option value.
- Prompt
Text - Owned prompt text.
- RawArgs
- A raw owned argument collection.
- Short
Flag - A one-character short flag such as
-v. - Stderr
Destination - Marker type for the process standard error stream.
- Stdin
Source - Marker type for the process standard input stream.
- Stdout
Destination - Marker type for the process standard output stream.
- Terminal
Height - A nonzero terminal height in rows.
- Terminal
Size - A terminal size value made from validated dimensions.
- Terminal
Width - A nonzero terminal width in columns.
Enums§
- Color
Support - Primitive terminal color capability.
- Flag
- A primitive flag token.
- Interactivity
- Primitive stream interactivity state.
- Newline
Behavior - Primitive newline policy for text output.
- YesNo
Answer - A primitive yes/no answer.
Constants§
- CONFIG_
ERROR - Configuration error.
- FAILURE
- General failure.
- SUCCESS
- Successful completion.
- USAGE_
ERROR - Command line usage error.