mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 06:42:33 +00:00
Merge #1653
1653: Revert " imp: Add exitcode::USAGE exit code as suggested in #1327" r=me a=Dylan-DPC Reverts clap-rs/clap#1637 Co-authored-by: Dylan DPC <dylan.dpc@gmail.com> Co-authored-by: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
This commit is contained in:
commit
f9818310e8
2 changed files with 2 additions and 3 deletions
|
@ -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"
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue