mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-22 18:19:54 -04:00
MAINT: Doc and usage string fixes.
This commit is contained in:
parent
ed87ca353b
commit
1d09d30ff6
11
README.md
11
README.md
@ -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
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user