MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / parse_with_args

Function parse_with_args

crates/openshell-server/src/cli.rs:1105–1109  ·  view source on GitHub ↗
(argv: &[&str])

Source from the content-addressed store, hash-verified

1103 use clap::FromArgMatches;
1104
1105 fn parse_with_args(argv: &[&str]) -> (super::RunArgs, clap::ArgMatches) {
1106 let matches = command().try_get_matches_from(argv).expect("parses");
1107 let cli = Cli::from_arg_matches(&matches).expect("from arg matches");
1108 (cli.run, matches)
1109 }
1110
1111 fn config_file_from_toml(toml: &str) -> ConfigFile {
1112 toml::from_str(toml).expect("valid TOML in test fixture")

Calls 1

commandFunction · 0.85