"--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",
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;
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);