Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
avi-cenna committed Sep 9, 2023
1 parent 28ae41c commit 6a01c25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -417,15 +417,15 @@ impl Config {
let value = matches
.value_of(arg::COMMAND_COLOR)
.ok_or_else(|| ConfigError::Internal {
message: "`--command_color` had no value".to_string(),
message: "`--command-color` had no value".to_string(),
})?;

match value {
arg::COMMAND_COLOR_NONE => Ok(None),
arg::COMMAND_COLOR_CYAN => Ok(Some(Colour::Cyan)),
arg::COMMAND_COLOR_PURPLE => Ok(Some(Colour::Purple)),
_ => Err(ConfigError::Internal {
message: format!("Invalid argument `{value}` to --command_color."),
message: format!("Invalid argument `{value}` to --command-color."),
}),
}
}
Expand Down

0 comments on commit 6a01c25

Please sign in to comment.