(_command: &str)
| 370 | } |
| 371 | |
| 372 | fn config_option(_command: &str) -> Arg { |
| 373 | Arg::new("config") |
| 374 | .long("config") |
| 375 | .value_name("PATH") |
| 376 | .value_parser(ValueParser::new(parse_config_path)) |
| 377 | .long_help(cformat!( |
| 378 | r#"Path to a specific config file to use. When set, config file discovery is skipped."# |
| 379 | )) |
| 380 | } |
| 381 | |
| 382 | fn parse_config_path(raw: &str) -> Result<PathBuf, String> { |
| 383 | let path = PathBuf::from(raw); |
no outgoing calls
no test coverage detected
searching dependent graphs…