From: Ian Jackson Date: Wed, 18 Nov 2020 20:43:50 +0000 (+0000) Subject: optional join for reset, for revert X-Git-Tag: otter-0.2.0~485 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=e212270ec6423f2c11574d70cac0f09ec3873c70;p=otter.git optional join for reset, for revert Signed-off-by: Ian Jackson --- 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()