X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=args.h;h=01dc439b8b24a2851d3295c1a0a2e9edd68e49c9;hb=19322454d23ba4bd033d3578978db047bbd49c7d;hp=76b245214118b9842f465edf12a2f7759f5e1724;hpb=deb0bc214fa41a647853e74a7eb433f2598682ac;p=xboard.git diff --git a/args.h b/args.h index 76b2452..01dc439 100644 --- a/args.h +++ b/args.h @@ -597,6 +597,7 @@ ArgDescriptor argDescriptors[] = { { "useBorder", ArgBoolean, (void *) &appData.useBorder, TRUE, (ArgIniType) FALSE }, { "ub", ArgBoolean, (void *) &appData.useBorder, FALSE, INVALID }, { "border", ArgFilename, (void *) &appData.border, TRUE, (ArgIniType) "" }, + { "finger", ArgFilename, (void *) &appData.finger, FALSE, (ArgIniType) "" }, // [HGM] tournament options { "tourneyFile", ArgFilename, (void *) &appData.tourneyFile, FALSE, (ArgIniType) "" }, @@ -922,6 +923,7 @@ ParseArgs(GetFunc get, void *cl) char endChar = (ch && ch != '\n' && (ch = get(cl)) == '{' ? '}' : '\n'); ExitArgError(_("Unrecognized argument %s"), argName, get != &FileGet); // [HGM] make unknown argument non-fatal while (ch != endChar && ch != NULLCHAR) ch = get(cl); // but skip rest of line it is on (or until closing '}' ) + if(ch == '}') ch = get(cl); continue; // so that when it is in a settings file, it is the only setting that will be purged from it } } else if (ch == '@') {