diff --git a/Cargo.lock b/Cargo.lock index a0fb0e7..4069054 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ [root] name = "fd-find" -version = "3.1.0" +version = "4.0.0" dependencies = [ "ansi_term 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", "atty 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/src/app.rs b/src/app.rs index 93e4372..32164c0 100644 --- a/src/app.rs +++ b/src/app.rs @@ -61,6 +61,7 @@ pub fn build_app() -> App<'static, 'static> { .long("type") .short("t") .takes_value(true) + .value_name("filetype") .possible_values(&["f", "file", "d", "directory", "s", "symlink"]) .hide_possible_values(true) .help("Filter by type: f(ile), d(irectory), s(ymlink)"), @@ -78,6 +79,7 @@ pub fn build_app() -> App<'static, 'static> { .long("color") .short("c") .takes_value(true) + .value_name("when") .possible_values(&["never", "auto", "always"]) .hide_possible_values(true) .help( @@ -90,6 +92,7 @@ pub fn build_app() -> App<'static, 'static> { .long("threads") .short("j") .takes_value(true) + .value_name("num") .help( "Set number of threads to use for searching\n\ (default: number of available CPU cores)",