From 9d52c6664b84f36cbae47161dc39b27f85990a16 Mon Sep 17 00:00:00 2001 From: Anders Blomdell <anders.blomdell@control.lth.se> Date: Thu, 6 Dec 2018 13:19:58 +0100 Subject: [PATCH] Adapt for changed clap behaviour with .required/.conflicts_with --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index abb4be5..7eca017 100644 --- a/src/main.rs +++ b/src/main.rs @@ -611,6 +611,7 @@ fn main() -> std::io::Result<()> { .help("Line endings are the NULL character")) .arg(Arg::with_name("stdin") .long("stdin") + .conflicts_with("PATH") .required(true) .help("Read paths from stdin")) .arg(Arg::with_name("max_age") @@ -621,7 +622,6 @@ fn main() -> std::io::Result<()> { .arg(Arg::with_name("PATH") .help("path(s) to traverse") .required(false) - .conflicts_with("stdin") .multiple(true) .index(1)) .get_matches(); -- GitLab