Skip to content
Myr

Use -f instead of -F

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sharkdp · committed by sharkdp · parent c45cf26 · Browse files · 1 file+7 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−4 removed

  • other:+7 added−4 removed

1 file+7 added−4 removed

modified:src/main.rs+7 added-4 removed
197 unmodified lines
198fn main() {199 let args: Vec<String> = env::args().collect();200201 let mut opts = Options::new();202 opts.optflag("h", "help", "print this help message");202 opts.optflag("h", "help",203 "print this help message");204 opts.optflag("s", "sensitive",205 "case-sensitive search (default: smart case)");206 opts.optflag("p", "full-path",207 "search full path (default: filename only)");208 opts.optflag("H", "hidden",209 "search hidden files/directories (default: off)");209 opts.optflag("F", "follow", "follow symlinks (default: off)");210 opts.optflag("n", "no-color", "do not colorize output (default: on)");210 opts.optflag("f", "follow",211 "follow symlinks (default: off)");212 opts.optflag("n", "no-color",213 "do not colorize output (default: on)");214 opts.optopt( "d", "max-depth",215 format!("maximum search depth (default: {})",216 MAX_DEPTH_DEFAULT).as_str(),214 "D");217 "D");218219 let matches = match opts.parse(&args[1..]) {220 Ok(m) => m,221 Err(e) => error(e.description())
52 unmodified lines