Update help text

This commit is contained in:
sharkdp 2017-10-05 21:35:22 +02:00
parent 34e4620e26
commit 0aae4a3d46
2 changed files with 4 additions and 1 deletions

2
Cargo.lock generated
View File

@ -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)",

View File

@ -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)",