From 4795945caff098bbcc8cdc9c79a8e7f66ae7cb02 Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Fri, 24 Aug 2018 19:47:15 -0500 Subject: [PATCH] Change the validate command to test. --- README.md | 11 +++++------ src/main.rs | 6 +++--- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 8afbd50..c25e975 100644 --- a/README.md +++ b/README.md @@ -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 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 ucg files or directories to validate. If not provided scan the directory for files with _test.ucg - ``` + ... 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 diff --git a/src/main.rs b/src/main.rs index 2e19fe4..044c6b4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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")