From 5e6da71ff257aecc31fb6614644320eb3f8022c0 Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Wed, 4 Jul 2018 12:48:33 -0500 Subject: [PATCH] Cut the v0.1.5 release. --- Cargo.toml | 2 +- README.md | 21 +++++++++++++++++++++ src/main.rs | 2 +- 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e568b48..7276581 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ucg" -version = "0.1.4" +version = "0.1.5" authors = ["Jeremy Wall "] description = "A configuration generation grammar." repository = "https://github.com/zaphar/ucg" diff --git a/README.md b/README.md index 526811c..71e5969 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,27 @@ SUBCOMMANDS: validate Check a specific ucg file for errors. ``` +## compiling a file + +```sh +Compile a specific ucg file. + +USAGE: + ucg build [OPTIONS] --sym --target + +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. +``` + ## Language Reference https://docs.rs/ucg/ \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index c3b7899..e0c6ca9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -36,7 +36,7 @@ fn do_flags<'a>() -> clap::ArgMatches<'a> { (@subcommand build => (about: "Compile a specific ucg file.") (@arg sym: --sym +takes_value +required "Specify a specific let binding in the ucg file to output.") - (@arg target: --target -t +required +takes_value "Target output type. (flags, json, env)") + (@arg target: --target -t +required +takes_value "Target output type. (flags, json, env, exec)") (@arg out: --out -o +takes_value "Output file to write to.") (@arg INPUT: +required "Input ucg file to build.") )