X-Git-Url: https://git.sesse.net/?p=pgn-extract;a=blobdiff_plain;f=argsfile.c;h=7bba9011b6da589af20e3c20285ce8c53646486f;hp=e2caa076645d738b20e8c7158f29d051e7822dd3;hb=be3167c9e0220a4ee3e8b5c5f813fb2627d1ce55;hpb=2941984be26cee5bbb0757ed20172035ed06d2f4 diff --git a/argsfile.c b/argsfile.c index e2caa07..7bba901 100644 --- a/argsfile.c +++ b/argsfile.c @@ -1078,6 +1078,14 @@ 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, "version") == 0) { fprintf(GlobalState.logfile, "pgn-extract %s\n", CURRENT_VERSION); exit(0);