remove isCmdLine; use passCmd1

This commit is contained in:
Timothee Cour 2020-02-26 03:10:11 -08:00 • committed by Andreas Rumpf
commit c1cbf94e2d
4 changed files with 3 additions and 7 deletions

View file

@ -204,7 +204,7 @@ proc processSpecificNote*(arg: string, state: TSpecialWord, pass: TCmdLinePass,
incl(conf.notes, n)
incl(conf.mainPackageNotes, n)
incl(conf.enableNotes, n)
if conf.isCmdLine:
if pass == passCmd1:
incl(conf.cmdLineNotes, n)
excl(conf.cmdLineDisabledNotes, n)
of "off":
@ -212,7 +212,7 @@ proc processSpecificNote*(arg: string, state: TSpecialWord, pass: TCmdLinePass,
excl(conf.mainPackageNotes, n)
incl(conf.disableNotes, n)
excl(conf.foreignPackageNotes, n)
if conf.isCmdLine:
if pass == passCmd1:
incl(conf.cmdLineDisabledNotes, n)
excl(conf.cmdLineNotes, n)
else: localError(conf, info, errOnOrOffExpectedButXFound % arg)