Skip to content
Myr

Small stylistic change

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

authored by sharkdp · committed by David Peter · parent 9a34ba6 · Browse files · 1 file+5 added−6 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+5 added−6 removed

  • other:+5 added−6 removed

1 file+5 added−6 removed

modified:src/app.rs+5 added-6 removed
35 unmodified lines
36 .help(helps[name].short)37 .long_help(helps[name].long)38 };3940 let app = App::new("fd")40 let mut app = App::new("fd")41 .version(crate_version!())42 .usage("fd [FLAGS/OPTIONS] [<pattern>] [<path>...]")43 .setting(AppSettings::ColoredHelp)44 .setting(AppSettings::DeriveDisplayOrder)
241 unmodified lines
286287 // Make `--one-file-system` available only on Unix and Windows platforms, as per the288 // restrictions on the corresponding option in the `ignore` crate.289 // Provide aliases `mount` and `xdev` for people coming from `find`.290 // It's not pretty, but I'm unaware of a way to make just part of a builder chain conditional290 if cfg!(any(unix, windows)) {292 app.arg(291 app = app.arg(292 arg("one-file-system")293 .long("one-file-system")294 .aliases(&["mount", "xdev"]),296 )297 } else {298 app295 );296 }297298 app299}300301#[rustfmt::skip]302fn usage() -> HashMap<&'static str, Help> {
181 unmodified lines