(&self)
| 313 | |
| 314 | impl 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 |