Expand description
Only argument parsing! Nothing more.
onlyargs is an obsessively tiny argument parsing library. It provides a basic trait and helper
functions for parsing arguments from the environment.
Implement the OnlyArgs trait on your own argument type and use any of the parser functions
to create your CLI. The trait can also be derived with the onlyargs_derive crate if you are
OK with an opinionated parser and just want to reduce the amount of boilerplate in your code.
Modules§
Macros§
- impl_
help - Creates a generic
HELPstring forOnlyArgsimplementations. - impl_
version - Creates a generic
VERSIONstring forOnlyArgsimplementations.
Enums§
- CliError
- Argument parsing errors.
Traits§
- Only
Args - The primary argument parser trait.
Functions§
- parse
- Type constructor for argument parser.