Crate onlyargs

Source
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§

traits

Macros§

impl_help
Creates a generic HELP string for OnlyArgs implementations.
impl_version
Creates a generic VERSION string for OnlyArgs implementations.

Enums§

CliError
Argument parsing errors.

Traits§

OnlyArgs
The primary argument parser trait.

Functions§

parse
Type constructor for argument parser.