diff --git a/Cargo.toml b/Cargo.toml index f26a98a47cb2..989a01e297d3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -49,7 +49,6 @@ maintenance = {status = "actively-developed"} [dependencies] bitflags = "1.2" -exitcode = "1.1.2" unicode-width = "0.1.4" textwrap = "0.11" indexmap = "1.0.1" diff --git a/src/build/app/mod.rs b/src/build/app/mod.rs index 6e82f8e7579c..eadbd7ad5732 100644 --- a/src/build/app/mod.rs +++ b/src/build/app/mod.rs @@ -1197,7 +1197,7 @@ impl<'b> App<'b> { i.lock().read_line(&mut s).unwrap(); } drop(e); - process::exit(exitcode::USAGE); + process::exit(2); } e.exit() @@ -1272,7 +1272,7 @@ impl<'b> App<'b> { } drop(self); drop(e); - process::exit(exitcode::USAGE); + process::exit(2); } drop(self);