MCPcopy Create free account
hub / github.com/ccusage/ccusage / args_to_strings

Function args_to_strings

rust/crates/ccusage/src/cli.rs:28–38  ·  view source on GitHub ↗
(args: I)

Source from the content-addressed store, hash-verified

26}
27
28fn args_to_strings<I>(args: I) -> Result<Vec<String>, String>
29where
30 I: IntoIterator<Item = OsString>,
31{
32 args.into_iter()
33 .map(|arg| {
34 arg.into_string()
35 .map_err(|_| "Arguments must be valid UTF-8".to_string())
36 })
37 .collect()
38}

Callers 1

parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected