argh

Function from_env

Source
pub fn from_env<T: TopLevelCommand>() -> T
Expand description

Create a FromArgs type from the current process’s env::args.

This function will exit early from the current process if argument parsing was unsuccessful or if information like --help was requested. Error messages will be printed to stderr, and --help output to stdout.