From a6ed0fc5ef53082956dac7e7def8443fb3cab7f7 Mon Sep 17 00:00:00 2001 From: Deepansh <21deepansh@gmail.com> Date: Wed, 9 Oct 2019 10:33:27 +0000 Subject: [PATCH] Fix CI error Fixes sharkdp/fd#496 --- src/app.rs | 44 +++++++++++++++++++++++++++++++++++++------- 1 file changed, 37 insertions(+), 7 deletions(-) diff --git a/src/app.rs b/src/app.rs index c5edf71..4c11a1f 100644 --- a/src/app.rs +++ b/src/app.rs @@ -50,10 +50,19 @@ pub fn build_app() -> App<'static, 'static> { arg("hidden") .long("hidden") .short("H") - .overrides_with("hidden") + .overrides_with("hidden"), + ) + .arg( + arg("no-ignore") + .long("no-ignore") + .short("I") + .overrides_with("no-ignore"), + ) + .arg( + arg("no-ignore-vcs") + .long("no-ignore-vcs") + .overrides_with("no-ignore-vcs"), ) - .arg(arg("no-ignore").long("no-ignore").short("I").overrides_with("no-ignore")) - .arg(arg("no-ignore-vcs").long("no-ignore-vcs").overrides_with("no-ignore-vcs")) .arg( arg("rg-alias-hidden-ignore") .short("u") @@ -93,10 +102,31 @@ pub fn build_app() -> App<'static, 'static> { .alias("literal") .overrides_with("fixed-strings"), ) - .arg(arg("absolute-path").long("absolute-path").short("a").overrides_with("absolute-path")) - .arg(arg("follow").long("follow").short("L").alias("dereference").overrides_with("follow")) - .arg(arg("full-path").long("full-path").short("p").overrides_with("full-path")) - .arg(arg("null_separator").long("print0").short("0").overrides_with("print0")) + .arg( + arg("absolute-path") + .long("absolute-path") + .short("a") + .overrides_with("absolute-path"), + ) + .arg( + arg("follow") + .long("follow") + .short("L") + .alias("dereference") + .overrides_with("follow"), + ) + .arg( + arg("full-path") + .long("full-path") + .short("p") + .overrides_with("full-path"), + ) + .arg( + arg("null_separator") + .long("print0") + .short("0") + .overrides_with("print0"), + ) .arg(arg("depth").long("max-depth").short("d").takes_value(true)) // support --maxdepth as well, for compatibility with rg .arg(