From: Ian Jackson Date: Sun, 6 Dec 2020 00:05:47 +0000 (+0000) Subject: formatting X-Git-Tag: otter-0.2.0~261 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=d2bd4220827dcfef1d5682ea395e2f3188bd8593;p=otter.git formatting Signed-off-by: Ian Jackson --- diff --git a/src/bin/otter.rs b/src/bin/otter.rs index 51887c7d..d426cd00 100644 --- a/src/bin/otter.rs +++ b/src/bin/otter.rs @@ -303,23 +303,24 @@ fn main() { "do not modify default layout"); let mut access = ap.refer(&mut rma.access); - access.metavar("EMAIL-ADDRESS").add_option( - &["--email"], - MapStore(|addr| Ok(Some( - TokenByEmail { addr: addr.to_string() }.into() - ))), - "send token by email, to EMAIL-ADDRESS (RFC822 recipient field syntax)" - ); + access.metavar("EMAIL-ADDRESS") + .add_option(&["--email"], + MapStore(|addr| Ok(Some( + TokenByEmail { addr: addr.to_string() }.into() + ))), + "send token by email, to EMAIL-ADDRESS \ + (RFC822 recipient field syntax)"); access.add_option(&["--url-on-stdout"], StoreConst(Some(UrlOnStdout.into())), "show game access url by printing to stdout"); - access.metavar("TOKEN").add_option( - &["--fixed-token"], - MapStore(|s| Ok(Some( - FixedToken { token: RawToken(s.to_string()) }.into() - ))), - "use fixed game access token TOKEN (for administrators, with --super, only; only `reset', not `redelivery', of tokens is possible)" - ); + access.metavar("TOKEN") + .add_option(&["--fixed-token"], + MapStore(|s| Ok(Some( + FixedToken { token: RawToken(s.to_string()) }.into() + ))), + "use fixed game access token TOKEN \ + (for administrators, with --super, only; \ + only `reset', not `redelivery', of tokens is possible)"); access.add_option(&["--no-access-token"], StoreConst(Some(PlayerAccessUnset.into())), "do not show game access info (for testing only)");