chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
614b97e
)
fix exit status
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 7 Aug 2020 23:45:04 +0000
(
00:45
+0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 7 Aug 2020 23:45:21 +0000
(
00:45
+0100)
src/bin/otter.rs
patch
|
blob
|
history
diff --git
a/src/bin/otter.rs
b/src/bin/otter.rs
index 04a8b33f917b141720c3eafee5ae7a1416569224..a6366283e6930cdf063cea5e4b701646204e30a7 100644
(file)
--- a/
src/bin/otter.rs
+++ b/
src/bin/otter.rs
@@
-123,6
+123,6
@@
fn main() {
Cell::from_mut(&mut mainopts.scope);
let opts = MainOpts::from_args();
*/
- }.unwrap_or_else(|
_already_printed| std::process::exit(12
));
+ }.unwrap_or_else(|
rc| std::process::exit(if rc!=0 { 12 } else { 0 }
));
println!("{:?}", &mainopts);
}