diff --git a/README.md b/README.md index 95b7315..c1b4216 100644 --- a/README.md +++ b/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] --sym --target + ucg build ... FLAGS: -h, --help Prints help information -V, --version Prints version information -OPTIONS: - -o, --out Output file to write to. - --sym Specify a specific let binding in the ucg file to output. - -t, --target Target output type. (flags, json, env, exec) - ARGS: - Input ucg file to build. + ... Input ucg files to build. ``` ## Language Reference diff --git a/src/main.rs b/src/main.rs index 1f70cfb..c1cdb1b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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()