From: Ian Jackson Date: Wed, 18 Nov 2020 22:24:05 +0000 (+0000) Subject: some todos X-Git-Tag: otter-0.2.0~470 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=303042f61b863e436e14477441a2a84bc850b4d9;p=otter.git some todos Signed-off-by: Ian Jackson --- 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"],