Skip to content

Commit

Permalink
fix(Settings): fixes bug where new color settings couldn't be convert…
Browse files Browse the repository at this point in the history
…ed from strs
  • Loading branch information
kbknapp committed Jun 8, 2016
1 parent a77c800 commit 706a7c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,10 @@ impl FromStr for AppSettings {
"nextlinehelp" => Ok(AppSettings::NextLineHelp),
"derivedisplayorder" => Ok(AppSettings::DeriveDisplayOrder),
"coloredhelp" => Ok(AppSettings::ColoredHelp),
"dontdelimittrailingvalues" => Ok(AppSettings::DontDelimitTrailingValues),
"colorauto" => Ok(AppSettings::ColorAuto),
"coloralways" => Ok(AppSettings::ColorAlways),
"colornever" => Ok(AppSettings::ColorNever),
_ => Err("unknown AppSetting, cannot convert from str".to_owned()),
}
}
Expand Down

0 comments on commit 706a7c1

Please sign in to comment.