Enable env_logger for the wasm-bindgen CLI tool

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

View File

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