Skip to content

Commit

Permalink
Merge #1653
Browse files Browse the repository at this point in the history
1653: Revert " imp: Add exitcode::USAGE exit code as suggested in #1327" r=pksunkara a=Dylan-DPC

Reverts #1637

Co-authored-by: Dylan DPC <dylan.dpc@gmail.com>
Co-authored-by: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
  • Loading branch information
3 people committed Feb 3, 2020
2 parents 5dcc8e6 + 74055a2 commit 3d9f635
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(2);
}

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

drop(self);
Expand Down

0 comments on commit 3d9f635

Please sign in to comment.