MCPcopy Index your code
hub / github.com/encounter/objdiff / from_env

Function from_env

objdiff-cli/src/argp_version.rs:60–63  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

58/// This function will exit early from the current process if argument parsing was unsuccessful or if information like `--help` was requested.
59/// Error messages will be printed to stderr, and `--help` output to stdout.
60pub fn from_env<T>() -> T
61where T: TopLevelCommand {
62 argp::parse_args_or_exit::<ArgsOrVersion<T>>(argp::DEFAULT).0
63}

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected