chiark / gitweb /
Revert "optional join for reset, for revert"
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 18 Nov 2020 20:43:57 +0000 (20:43 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 18 Nov 2020 20:44:10 +0000 (20:44 +0000)
This is not going to be trivial to implement

This reverts commit e212270ec6423f2c11574d70cac0f09ec3873c70.

src/bin/otter.rs

index 0c1350286dc46ee4caa7daad6a7b4bfd55efd192..a8c0f6a11f54d761798e77f1c14ea09da2b02990 100644 (file)
@@ -638,7 +638,6 @@ mod reset_game {
     table_name: String,
     game_file: String,
     table_file: Option<String>,
-    join: bool,
   }
 
   fn subargs(sa: &mut Args) -> ArgumentParser {
@@ -647,11 +646,6 @@ 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()