X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=args.h;h=6e3c3aca06b8abd30c99351960bd8ebe6b235d92;hb=395642a0ccce8adbc55d4c8ff58780ab07c12813;hp=d9df08cdd3f045a8d31b7ac6d9f11b2a2df1b75f;hpb=a8ff0fa6ad8c25ee82872f9300654071eb334297;p=xboard.git diff --git a/args.h b/args.h index d9df08c..6e3c3ac 100644 --- a/args.h +++ b/args.h @@ -144,6 +144,7 @@ ArgDescriptor argDescriptors[] = { { "opt", ArgSettingsFilename, (void *) NULL, FALSE, INVALID }, { "loadPositionFile", ArgFilename, (void *) &appData.loadPositionFile, FALSE, INVALID }, { "tourneyFile", ArgFilename, (void *) &appData.tourneyFile, FALSE, INVALID }, + { "is", ArgString, (void *) &icsNick, FALSE, INVALID }, { "loadGameFile", ArgFilename, (void *) &appData.loadGameFile, FALSE, INVALID }, { "", ArgNone, NULL, FALSE, INVALID }, /* keyword arguments */ @@ -867,7 +868,7 @@ ParseArgs(GetFunc get, void *cl) char *q; int i, octval; char ch; - int posarg = 3; // default is game file + int posarg = 4; // default is game file ch = get(cl); for (;;) { @@ -1043,6 +1044,8 @@ ParseArgs(GetFunc get, void *cl) appData.viewer = TRUE; } else if(!strcasecmp(argValue + len, ".ini") || !strcasecmp(argValue + len, ".xop")) { ad = &argDescriptors[0]; // correct implied type to -opt + } else if(GetEngineLine(argValue, 11)) { + ad = &argDescriptors[3]; // correct implied type to -is } else { // keep default -lgf, but let it imply viewer mode as well appData.viewer = TRUE; }