mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-11-24 06:33:33 +03:00
Merge pull request #1067 from alexcrichton/minor-tweaks
A few minor CLI tweaks during work on #1002
This commit is contained in:
commit
2bd9c0eafb
@ -155,7 +155,7 @@ fn rmain() -> Result<(), Error> {
|
||||
&tmpdir,
|
||||
&args.collect::<Vec<_>>(),
|
||||
&tests,
|
||||
)?;
|
||||
).context("failed to spawn server")?;
|
||||
let addr = srv.server_addr();
|
||||
|
||||
// TODO: eventually we should provide the ability to exit at some point
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user