X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=argsfile.c;h=067a479eae7077c1ebef97a7a8f019294c16679e;hb=0d25f49537f68e4764c94eaf92d235e205ff5b45;hp=82be49ef3749b174b5e62870459b7a50d270c38a;hpb=4e0c88b473dffdefb830e6806c3692aab6b4fa0c;p=pgn-extract diff --git a/argsfile.c b/argsfile.c index 82be49e..067a479 100644 --- a/argsfile.c +++ b/argsfile.c @@ -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);