]> git.sesse.net Git - pgn-extract/blobdiff - argsfile.c
Store the ECO before and not after the move.
[pgn-extract] / argsfile.c
index 82be49ef3749b174b5e62870459b7a50d270c38a..e2caa076645d738b20e8c7158f29d051e7822dd3 100644 (file)
@@ -176,6 +176,7 @@ usage_and_exit(void)
       "--append - see -a",
       "--checkfile - see -c",
       "--checkmate - see -M",
+      "--dumpeco - dump a list of all ECO hashes with names, then quit",
       "--duplicates - see -d",
       "--evaluation - include a position evaluation after each move",
       "--fencomments - include a FEN string after each move",
@@ -908,6 +909,10 @@ process_long_form_argument(const char *argument, const char *associated_value)
         process_argument(MATCH_CHECKMATE_ARGUMENT, "");
         return 1;
     }
+    else if(stringcompare(argument, "dumpeco") == 0) {
+        GlobalState.dump_eco = TRUE;
+        return 1;
+    }
     else if(stringcompare(argument, "duplicates") == 0) {
         process_argument(DUPLICATES_FILE_ARGUMENT, associated_value);
         return 2;