Merge pull request #1067 from alexcrichton/minor-tweaks

A few minor CLI tweaks during work on #1002
This commit is contained in:
Alex Crichton 2018-11-29 15:16:14 -06:00 committed by GitHub
commit 2bd9c0eafb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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());