From 303042f61b863e436e14477441a2a84bc850b4d9 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 18 Nov 2020 22:24:05 +0000 Subject: [PATCH] some todos Signed-off-by: Ian Jackson --- src/bin/otter.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/bin/otter.rs b/src/bin/otter.rs index 1766c669..8d148149 100644 --- a/src/bin/otter.rs +++ b/src/bin/otter.rs @@ -73,8 +73,6 @@ struct MainOpts { gaccount: AccountName, nick: Option, timezone: Option, - // xxx default to UrlOnStdout - // xxx options for others access: Option, socket_path: String, verbose: i32, @@ -239,8 +237,11 @@ fn main() { MapStore(|s| Ok(Some( FixedToken { token: RawToken(s.to_string()) }.into() ))), - "use fixed game access token TOKEN (for administrators only)r" + "use fixed game access token TOKEN (for administrators, with --super, only)" ); + access.add_option(&["--no-access-token"], + StoreConst(Some(PlayerAccessUnset.into())), + "do not show game access info (for testing only)"); let mut gaccount = ap.refer(&mut rma.gaccount); gaccount.metavar("GAME-ACCOUNT").add_option(&["--game-name-account"], -- 2.30.2