From f01ab1f87a14202d8158725380d87d62de89ee5e Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 20 May 2021 12:43:38 +0100 Subject: [PATCH] otter(1): Provide -g abbreviation for --game Signed-off-by: Ian Jackson --- apitest/apitest.rs | 4 ++-- src/bin/otter.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apitest/apitest.rs b/apitest/apitest.rs index 766fc588..cac29c06 100644 --- a/apitest/apitest.rs +++ b/apitest/apitest.rs @@ -170,7 +170,7 @@ pub trait Substitutor { #[throws(AE)] fn gss(&self, s: &str) -> Vec where Self: Sized { - self.ss(&format!("--game @table@ {}", s))? + self.ss(&format!("-g @table@ {}", s))? } } @@ -867,7 +867,7 @@ impl DirSubst { ].iter()); su.otter(&subst - .ss("--super --game @table@ \ + .ss("--super -g@table@ \ --account server:@nick@ \ --fixed-token @token@ \ join-game")?)?; diff --git a/src/bin/otter.rs b/src/bin/otter.rs index 489bfc62..5c7d2751 100644 --- a/src/bin/otter.rs +++ b/src/bin/otter.rs @@ -320,7 +320,7 @@ fn main() { "use NICK as nick for joining games (now and in the future) \ (default: derive from account name"); ap.refer(&mut rma.game).metavar("TABLE-NAME") - .add_option(&["--game"], + .add_option(&["--game","-g"], StoreOption, "Select the game to operate on"); ap.refer(&mut rma.timezone).metavar("TZ") -- 2.30.2