From e212270ec6423f2c11574d70cac0f09ec3873c70 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 18 Nov 2020 20:43:50 +0000 Subject: [PATCH] optional join for reset, for revert Signed-off-by: Ian Jackson --- src/bin/otter.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bin/otter.rs b/src/bin/otter.rs index a8c0f6a1..0c135028 100644 --- a/src/bin/otter.rs +++ b/src/bin/otter.rs @@ -638,6 +638,7 @@ mod reset_game { table_name: String, game_file: String, table_file: Option, + join: bool, } fn subargs(sa: &mut Args) -> ArgumentParser { @@ -646,6 +647,11 @@ mod reset_game { ap.refer(&mut sa.table_file).metavar("TABLE-SPEC-TOML") .add_option(&["--reset-table"],StoreOption, "reset the players and access too"); + ap.refer(&mut sa.join) + .add_option(&["--join"],StoreTrue, + "join the game (default)") + .add_option(&["--no-join"],StoreFalse, + "do not join the game"); ap.refer(&mut sa.table_name).required() .add_argument("TABLE-NAME",Store,"table name"); ap.refer(&mut sa.game_file).required() -- 2.30.2