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.
()
| 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. |
| 60 | pub fn from_env<T>() -> T |
| 61 | where T: TopLevelCommand { |
| 62 | argp::parse_args_or_exit::<ArgsOrVersion<T>>(argp::DEFAULT).0 |
| 63 | } |