Change the validate command to test.

This commit is contained in:
Jeremy Wall 2018-08-24 19:47:15 -05:00
parent ae419ea3e7
commit 4795945caf
2 changed files with 8 additions and 9 deletions

View File

@ -42,7 +42,7 @@ SUBCOMMANDS:
build Build a specific ucg file.
help Prints this message or the help of the given subcommand(s)
inspect Inspect a specific symbol in a ucg file.
validate Check a specific ucg file for errors.
test Check a specific ucg file for errors.
```
## Compiling
@ -62,12 +62,12 @@ ARGS:
<INPUT>... Input ucg files or directories to build. If not provided then build the contents of the current directory.
```
## Validating
## Testing
```sh
Check a list of ucg files for errors and run assertions.
CCheck a list of ucg files for errors and run test assertions.
USAGE:
ucg validate [FLAGS] -r [INPUT]...
ucg test [FLAGS] -r [INPUT]...
FLAGS:
-h, --help Prints help information
@ -75,8 +75,7 @@ FLAGS:
-V, --version Prints version information
ARGS:
<INPUT>... Input ucg files or directories to validate. If not provided scan the directory for files with _test.ucg
```
<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
## Language Reference

View File

@ -47,10 +47,10 @@ fn do_flags<'a>() -> clap::ArgMatches<'a> {
(@arg recurse: -r +required conflicts_with[INPUT] "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 validate =>
(about: "Check a list of ucg files for errors and run assertions.")
(@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 INPUT: ... "Input ucg files or directories to validate. If not provided it will scan the directories for files with _test.ucg")
(@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 =>
(about: "list the available converters")