refactor: better alphabets

This commit is contained in:
graelo 2020-05-30 20:27:32 +02:00
parent 53f7084303
commit 56106f4e38
2 changed files with 83 additions and 30 deletions

View file

@ -57,8 +57,12 @@ pub struct CliOpt {
/// Alphabet to draw hints from.
///
/// Possible values are "{A}", "{A}-homerow", "{A}-left-hand",
/// "{A}-right-hand", where "{A}" is one of "qwerty", "azerty", "qwertz",
/// "dvorak", "colemak". Examples: "qwerty", "dvorak-homerow".
/// "{A}-right-hand", where "{A}" is one of "qwerty", "azerty", "qwertz"
/// "dvorak", "colemak".
///
/// # Examples
///
/// "qwerty", "dvorak-homerow", "azerty-right-hand".
#[clap(short = "k", long, default_value = "dvorak",
parse(try_from_str = alphabets::parse_alphabet))]
alphabet: alphabets::Alphabet,