From 587b92c05926c39a6d8a67fc83d2a9d6dd3dc622 Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Mon, 12 Feb 2018 22:52:47 -0600 Subject: [PATCH] Add a new option to the target flag help string. --- src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 4f2f649..f930a05 100644 --- a/src/main.rs +++ b/src/main.rs @@ -34,7 +34,7 @@ fn do_flags<'a>() -> clap::ArgMatches<'a> { (@subcommand build => (about: "Compile a specific ucg file.") (@arg sym: --sym +takes_value "Specify a specific let binding in the ucg file to output.") - (@arg target: --target -t +required +takes_value "Target output type. (flags, json)") + (@arg target: --target -t +required +takes_value "Target output type. (flags, json, env)") (@arg out: --out -o +takes_value "Output file to write to.") (@arg INPUT: +required "Input ucg file to build.") ) @@ -42,8 +42,7 @@ fn do_flags<'a>() -> clap::ArgMatches<'a> { (about: "Check a specific ucg file for errors.") (@arg INPUT: +required "Input ucg file to validate.") ) - ) - .get_matches() + ).get_matches() } fn run_converter(c: ConverterRunner, v: Rc, f: &str) -> io::Result<()> {