mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-22 18:19:54 -04:00
Recurse flag can be used with flag input as arguments.
This commit is contained in:
parent
9d2d3843a5
commit
02cc210eb2
@ -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 =>
|
||||
|
Loading…
x
Reference in New Issue
Block a user