Skip to content
Myr

Add aliases for `--one-file-system`

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

The functionality provided by `--one-file-system` is called `-mount`/`-xdev` under `find`, so provide those aliases as a compromise.

authored by Simon Engmann · committed by David Peter · parent dea1fbe · Browse files · 1 file+6 added−1 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+6 added−1 removed

  • other:+6 added−1 removed

1 file+6 added−1 removed

modified:src/app.rs+6 added-1 removed
284 unmodified lines
285 );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 conditional291 if cfg!(unix) || cfg!(windows) {291 app.arg(arg("one-file-system").long("one-file-system"))292 app.arg(293 arg("one-file-system")294 .long("one-file-system")295 .aliases(&["mount", "xdev"]),296 )297 } else {298 app299 }300}
184 unmodified lines