From: Ian Jackson Date: Sat, 8 Aug 2020 11:34:23 +0000 (+0100) Subject: tidying X-Git-Tag: otter-0.2.0~1162 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=10e2482a0b04df3729d142f91090aec79e783d13;p=otter.git tidying --- diff --git a/src/bin/otter.rs b/src/bin/otter.rs index 19d18ef2..0eacd702 100644 --- a/src/bin/otter.rs +++ b/src/bin/otter.rs @@ -85,18 +85,10 @@ impl<'x, T, F: FnMut(&str) -> Result> } } -//#[derive(Debug,StructOpt)] -//#[structopt(rename_all="kebab-case")] #[derive(Debug,Default)] struct MainOpts { scope: Option, } -/* -//#[derive(Debug,StructOpt)] -enum Subcommand { - CreateTable { - } -}*/ struct Subcommand ( &'static str, @@ -150,11 +142,6 @@ fn main() { ManagementScope::Unix { user } }); >::Ok((mainopts, subcommand, subargs)) - /* - - Cell::from_mut(&mut mainopts.scope); - let opts = MainOpts::from_args(); -*/ })().unwrap_or_else(|rc| exit(if rc!=0 { 12 } else { 0 })); for _ in inventory::iter:: { }