Recurse flag can be used with flag input as arguments.

This commit is contained in:
Jeremy Wall 2018-11-27 17:48:41 -06:00
parent 9d2d3843a5
commit 02cc210eb2

View File

@ -45,12 +45,12 @@ fn do_flags<'a, 'b>() -> clap::App<'a, 'b> {
) )
(@subcommand build => (@subcommand build =>
(about: "Build a list of ucg files.") (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.") (@arg INPUT: ... "Input ucg files or directories to build. If not provided then build the contents of the current directory.")
) )
(@subcommand test => (@subcommand test =>
(about: "Check a list of ucg files for errors and run test assertions.") (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") (@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 => (@subcommand converters =>