Skip to content

Commit

Permalink
fix: remove ClapKeybindings from CliArgs due to clap bug
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzrehde committed Jan 21, 2024
1 parent ee9c273 commit a105b31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -551,10 +551,11 @@ pub struct CliArgs {
#[arg(short = 'f', long = "fields", value_name = "LIST")]
field_selections: Option<FieldSelections>,

// TODO: replace with ClapKeybindings (currently panics, known clap bug)
// TODO: replace with StringKeybindings once clap supports parsing into HashMap
/// Keybindings as comma-separated `KEY:OP[+OP]*` pairs, e.g. `q:select+exit,r:reload`.
#[arg(short = 'b', long = "bind", value_name = "LIST", value_delimiter = ',', value_parser = keybindings::parse_str)]
keybindings: Option<ClapKeybindings>,
keybindings: Option<Vec<(String, Vec<String>)>>,
}

/// Convert [[&str, String]] to [[String, String]] by calling str::to_owned().
Expand Down

0 comments on commit a105b31

Please sign in to comment.