1
0
mirror of https://github.com/fluencelabs/wasm-bindgen synced 2025-03-16 18:20:51 +00:00

Enable env_logger for the wasm-bindgen CLI tool

This was intended earlier, but fogotten! Found during work on 
This commit is contained in:
Alex Crichton 2018-11-29 12:25:24 -08:00
parent 82bfbf9d20
commit 430fce7a8b

@ -5,6 +5,7 @@ extern crate docopt;
extern crate wasm_bindgen_shared;
#[macro_use]
extern crate failure;
extern crate env_logger;
use std::path::PathBuf;
use std::process;
@ -59,6 +60,7 @@ struct Args {
}
fn main() {
env_logger::init();
let args: Args = Docopt::new(USAGE)
.and_then(|d| d.deserialize())
.unwrap_or_else(|e| e.exit());