]> git.sesse.net Git - pgn-extract/blobdiff - argsfile.c
Push through a computer/human flag to the binary output.
[pgn-extract] / argsfile.c
index 82be49ef3749b174b5e62870459b7a50d270c38a..067a479eae7077c1ebef97a7a8f019294c16679e 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;
@@ -1073,6 +1078,22 @@ process_long_form_argument(const char *argument, const char *associated_value)
         GlobalState.output_total_plycount = TRUE;
         return 1;
     }
+    else if(stringcompare(argument, "startpos") == 0) {
+        GlobalState.start_position = atol(associated_value);
+        return 2;
+    }
+    else if(stringcompare(argument, "endpos") == 0) {
+        GlobalState.end_position = atol(associated_value);
+        return 2;
+    }
+    else if(stringcompare(argument, "startfilenum") == 0) {
+        GlobalState.start_file_number = atoi(associated_value);
+        return 2;
+    }
+    else if(stringcompare(argument, "computerflag") == 0) {
+        GlobalState.computer_flag = atoi(associated_value);
+        return 2;
+    }
     else if(stringcompare(argument, "version") == 0) {
         fprintf(GlobalState.logfile, "pgn-extract %s\n", CURRENT_VERSION);
        exit(0);