]> git.sesse.net Git - pgn-extract/blobdiff - argsfile.c
Store the current file number (with offset) in the binary output.
[pgn-extract] / argsfile.c
index 7bba9011b6da589af20e3c20285ce8c53646486f..62146f69707006fbf1f2c5b5ad9914d94d5cf23c 100644 (file)
@@ -1086,6 +1086,10 @@ process_long_form_argument(const char *argument, const char *associated_value)
         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, "version") == 0) {
         fprintf(GlobalState.logfile, "pgn-extract %s\n", CURRENT_VERSION);
        exit(0);