Added --docInternal option to allow 'nim doc' to include non-exported symbols

This commit is contained in:
Ico Doornekamp 2019-01-21 22:56:40 +01:00 • committed by Andreas Rumpf
commit 7fcf51248b
4 changed files with 8 additions and 1 deletions

View file

@ -746,6 +746,8 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo;
else:
conf.cppCustomNamespace = "Nim"
defineSymbol(conf.symbols, "cppCompileToNamespace", conf.cppCustomNamespace)
of "docinternal":
processOnOffSwitchG(conf, {optDocInternal}, arg, pass, info)
else:
if strutils.find(switch, '.') >= 0: options.setConfigVar(conf, switch, arg)
else: invalidCmdLineOption(conf, pass, switch, info)