Skip to content

Commit

Permalink
Revert " imp: Add exitcode::USAGE exit code as suggested in #1327"
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan-DPC committed Feb 1, 2020
1 parent 4740b1e commit d777a24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/build/app/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,7 @@ impl<'b> App<'b> {
i.lock().read_line(&mut s).unwrap();
}
drop(e);
process::exit(exitcode::USAGE);
process::exit(1);
}

e.exit()
Expand Down Expand Up @@ -1272,7 +1272,7 @@ impl<'b> App<'b> {
}
drop(self);
drop(e);
process::exit(exitcode::USAGE);
process::exit(1);
}

drop(self);
Expand Down

0 comments on commit d777a24

Please sign in to comment.