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:
e45d016
)
wip opts
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 7 Aug 2020 23:38:51 +0000
(
00:38
+0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 7 Aug 2020 23:38:51 +0000
(
00:38
+0100)
src/bin/otter.rs
patch
|
blob
|
history
diff --git
a/src/bin/otter.rs
b/src/bin/otter.rs
index 13e9ec85933e3253d76ed103803ccb6f31fad8db..04a8b33f917b141720c3eafee5ae7a1416569224 100644
(file)
--- a/
src/bin/otter.rs
+++ b/
src/bin/otter.rs
@@
-112,6
+112,9
@@
fn main() {
user: user.into()
}))),
"use specified unix user scope");
+ scope.add_option(&["--scope-unix"],
+ StoreConst(None),
+ "use USER scope");
let r = ap.parse_args();
mem::drop(ap);
r
@@
-120,6
+123,6
@@
fn main() {
Cell::from_mut(&mut mainopts.scope);
let opts = MainOpts::from_args();
*/
- }.
expect("parse argw"
);
+ }.
unwrap_or_else(|_already_printed| std::process::exit(12)
);
println!("{:?}", &mainopts);
}