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
|
## compiling a file
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
Compile a specific ucg file.
|
Build a list of ucg files.
|
||||||
|
|
||||||
USAGE:
|
USAGE:
|
||||||
ucg build [OPTIONS] <INPUT> --sym <sym> --target <target>
|
ucg build <INPUT>...
|
||||||
|
|
||||||
FLAGS:
|
FLAGS:
|
||||||
-h, --help Prints help information
|
-h, --help Prints help information
|
||||||
-V, --version Prints version 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:
|
ARGS:
|
||||||
<INPUT> Input ucg file to build.
|
<INPUT>... Input ucg files to build.
|
||||||
```
|
```
|
||||||
|
|
||||||
## Language Reference
|
## Language Reference
|
||||||
|
@ -42,12 +42,11 @@ fn do_flags<'a>() -> clap::ArgMatches<'a> {
|
|||||||
(@arg INPUT: +required "Input ucg file to inspect symbol from.")
|
(@arg INPUT: +required "Input ucg file to inspect symbol from.")
|
||||||
)
|
)
|
||||||
(@subcommand build =>
|
(@subcommand build =>
|
||||||
(about: "Build a specific ucg file.")
|
(about: "Build a list of ucg files.")
|
||||||
(@arg out: --out -o +takes_value "Output file to write to.")
|
|
||||||
(@arg INPUT: ... +required "Input ucg files to build.")
|
(@arg INPUT: ... +required "Input ucg files to build.")
|
||||||
)
|
)
|
||||||
(@subcommand validate =>
|
(@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.")
|
(@arg INPUT: ... +required "Input ucg files to validate.")
|
||||||
)
|
)
|
||||||
).get_matches()
|
).get_matches()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user