src/main.c

changeset 90
395542d915d7
parent 89
58b788fd10a7
--- a/src/main.c	Sat Mar 28 12:57:05 2026 +0100
+++ b/src/main.c	Sat Mar 28 14:01:14 2026 +0100
@@ -44,7 +44,7 @@
     uint8_t timeunit = 60;
     size_t len;
     
-    for (int opt ; (opt = getopt(argc, argv, "a:bc:hp:rsS:t:Uv")) != -1 ;) {
+    for (int opt ; (opt = getopt(argc, argv, "a:bc:Fhp:rsS:t:Uv")) != -1 ;) {
         switch (opt) {
         case 'c':
             settings->continuepgn = optarg;
@@ -56,10 +56,13 @@
             settings->gameinfo.servercolor = rand() & 1 ? WHITE : BLACK;
             break;
         case 's':
-            settings->singlemachine = 1;
+            settings->singlemachine = true;
+            break;
+        case 'F':
+            settings->disableflip = true;
             break;
         case 'U':
-            settings->unicode = 0;
+            settings->unicode = false;
             break;
         case 't':
         case 'a':
@@ -114,8 +117,10 @@
 "  -a <time>     Specifies the time to add after each move\n"
 "  -b            Server plays black pieces (default: white)\n"
 "  -r            Distribute color randomly\n"
-"  -s            Single machine mode\n"
 "  -t <time>     Specifies time limit (default: no limit)\n"
+"\nHot seat\n"
+"  -s            Play a hot seat game (no client/server)\n"
+"  -F            Do not automatically flip the board in hot seat games\n"
 "\nNotes\n"
 "The time unit for -a is seconds and for -t minutes by default. To "
 "specify\nseconds for the -t option, use the s suffix.\n"

mercurial