From 02cc210eb2137bd7171b57f6c80b3dc4dcbecee3 Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Tue, 27 Nov 2018 17:48:41 -0600 Subject: [PATCH] Recurse flag can be used with flag input as arguments. --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 9a25512..5cada96 100644 --- a/src/main.rs +++ b/src/main.rs @@ -45,12 +45,12 @@ fn do_flags<'a, 'b>() -> clap::App<'a, 'b> { ) (@subcommand build => (about: "Build a list of ucg files.") - (@arg recurse: -r +required conflicts_with[INPUT] "Whether we should recurse in directories or not.") + (@arg recurse: -r +required "Whether we should recurse in directories or not.") (@arg INPUT: ... "Input ucg files or directories to build. If not provided then build the contents of the current directory.") ) (@subcommand test => (about: "Check a list of ucg files for errors and run test assertions.") - (@arg recurse: -r +required conflicts_with[INPUT] "Whether we should recurse or not.") + (@arg recurse: -r +required "Whether we should recurse or not.") (@arg INPUT: ... "Input ucg files or directories to run test assertions for. If not provided it will scan the current directory for files with _test.ucg") ) (@subcommand converters =>