refactor: refactor

This commit is contained in:
graelo 2020-05-26 08:11:45 +02:00
parent b3099b42c9
commit 623c66cbba
4 changed files with 39 additions and 38 deletions

View file

@ -34,7 +34,7 @@ pub fn run(buffer: String, opt: &Opt) -> String {
&mut state,
opt.multi_selection,
opt.reverse,
opt.unique,
opt.unique_hint,
&opt.hint_alignment,
&opt.colors,
hint_style,
@ -91,7 +91,7 @@ pub struct Opt {
/// Keep the same hint for identical matches.
#[clap(short, long)]
unique: bool,
unique_hint: bool,
/// Align hint with its match.
#[clap(short = "a", long, arg_enum, default_value = "leading")]
@ -113,7 +113,7 @@ pub struct Opt {
parse(try_from_str = parse_chars))]
hint_surroundings: (char, char),
/// Target path where to store the selected matches.
/// Optional target path where to store the selected matches.
#[clap(short = "o", long = "output", parse(from_os_str))]
pub target_path: Option<path::PathBuf>,