MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / display_string

Method display_string

crates/cli-flags/src/opt.rs:315–320  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

313
314impl OptName {
315 fn display_string(&self) -> String {
316 match self {
317 OptName::Name(s) => s.replace('_', "-"),
318 OptName::Prefix(s) => format!("{s}-<KEY>"),
319 }
320 }
321}
322
323/// A helper trait for all types of options that can be parsed. This is what

Callers 1

parse_refMethod · 0.80

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected