Merge pull request #115 from holygits/add-clap-version

Fix '-V/--version' output [EOM]
This commit is contained in:
Nikolay Volf 2019-02-27 10:33:52 +08:00 committed by GitHub
commit b1fbd2921e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,9 @@
//! Experimental build tool for cargo //! Experimental build tool for cargo
#[macro_use]
extern crate clap;
extern crate glob; extern crate glob;
extern crate pwasm_utils as utils; extern crate pwasm_utils as utils;
extern crate clap;
extern crate parity_wasm; extern crate parity_wasm;
extern crate pwasm_utils_cli as logger; extern crate pwasm_utils_cli as logger;
@ -69,6 +70,7 @@ fn do_main() -> Result<(), Error> {
logger::init_log(); logger::init_log();
let matches = App::new("wasm-build") let matches = App::new("wasm-build")
.version(crate_version!())
.arg(Arg::with_name("target") .arg(Arg::with_name("target")
.index(1) .index(1)
.required(true) .required(true)