mirror of https://github.com/sharkdp/fd.git
Use -f instead of -F
This commit is contained in:
parent
c45cf26577
commit
b18eded6aa
11
src/main.rs
11
src/main.rs
|
@ -199,19 +199,22 @@ fn main() {
|
||||||
let args: Vec<String> = env::args().collect();
|
let args: Vec<String> = env::args().collect();
|
||||||
|
|
||||||
let mut opts = Options::new();
|
let mut opts = Options::new();
|
||||||
opts.optflag("h", "help", "print this help message");
|
opts.optflag("h", "help",
|
||||||
|
"print this help message");
|
||||||
opts.optflag("s", "sensitive",
|
opts.optflag("s", "sensitive",
|
||||||
"case-sensitive search (default: smart case)");
|
"case-sensitive search (default: smart case)");
|
||||||
opts.optflag("p", "full-path",
|
opts.optflag("p", "full-path",
|
||||||
"search full path (default: filename only)");
|
"search full path (default: filename only)");
|
||||||
opts.optflag("H", "hidden",
|
opts.optflag("H", "hidden",
|
||||||
"search hidden files/directories (default: off)");
|
"search hidden files/directories (default: off)");
|
||||||
opts.optflag("F", "follow", "follow symlinks (default: off)");
|
opts.optflag("f", "follow",
|
||||||
opts.optflag("n", "no-color", "do not colorize output (default: on)");
|
"follow symlinks (default: off)");
|
||||||
|
opts.optflag("n", "no-color",
|
||||||
|
"do not colorize output (default: on)");
|
||||||
opts.optopt( "d", "max-depth",
|
opts.optopt( "d", "max-depth",
|
||||||
format!("maximum search depth (default: {})",
|
format!("maximum search depth (default: {})",
|
||||||
MAX_DEPTH_DEFAULT).as_str(),
|
MAX_DEPTH_DEFAULT).as_str(),
|
||||||
"D");
|
"D");
|
||||||
|
|
||||||
let matches = match opts.parse(&args[1..]) {
|
let matches = match opts.parse(&args[1..]) {
|
||||||
Ok(m) => m,
|
Ok(m) => m,
|
||||||
|
|
Loading…
Reference in New Issue