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

Function arg_defaulted

crates/openshell-server/src/cli.rs:525–530  ·  view source on GitHub ↗

Returns `true` when an argument's value came from clap's built-in default (or was never supplied at all). When the predicate is `true`, the loader is free to replace the value with one read from the TOML config file.

(matches: &ArgMatches, id: &str)

Source from the content-addressed store, hash-verified

523/// (or was never supplied at all). When the predicate is `true`, the loader
524/// is free to replace the value with one read from the TOML config file.
525fn arg_defaulted(matches: &ArgMatches, id: &str) -> bool {
526 matches!(
527 matches.value_source(id),
528 None | Some(ValueSource::DefaultValue)
529 )
530}
531
532/// Resolve the bind address for an auxiliary listener (health / metrics).
533///

Callers 4

resolve_aux_listenerFunction · 0.85
merge_file_into_argsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected