chiark / gitweb /
formatting
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 6 Dec 2020 00:05:47 +0000 (00:05 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 6 Dec 2020 00:05:47 +0000 (00:05 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/bin/otter.rs

index 51887c7d38cf9cd8abff96d31ae66635a9abbeb6..d426cd00706446943bef600e245d6e39e18f72e9 100644 (file)
@@ -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)");