MAINT: Doc and usage string fixes.

This commit is contained in:
Jeremy Wall 2018-08-15 18:54:08 -05:00
parent ed87ca353b
commit 1d09d30ff6
2 changed files with 5 additions and 11 deletions

View File

@ -48,22 +48,17 @@ SUBCOMMANDS:
## compiling a file
```sh
Compile a specific ucg file.
Build a list of ucg files.
USAGE:
ucg build [OPTIONS] <INPUT> --sym <sym> --target <target>
ucg build <INPUT>...
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-o, --out <out> Output file to write to.
--sym <sym> Specify a specific let binding in the ucg file to output.
-t, --target <target> Target output type. (flags, json, env, exec)
ARGS:
<INPUT> Input ucg file to build.
<INPUT>... Input ucg files to build.
```
## Language Reference

View File

@ -42,12 +42,11 @@ fn do_flags<'a>() -> clap::ArgMatches<'a> {
(@arg INPUT: +required "Input ucg file to inspect symbol from.")
)
(@subcommand build =>
(about: "Build a specific ucg file.")
(@arg out: --out -o +takes_value "Output file to write to.")
(about: "Build a list of ucg files.")
(@arg INPUT: ... +required "Input ucg files to build.")
)
(@subcommand validate =>
(about: "Check a specific ucg file for errors.")
(about: "Check a list of ucg files for errors and run assertions.")
(@arg INPUT: ... +required "Input ucg files to validate.")
)
).get_matches()