* fix #16346 SuccessX rst2html * cleanups * _ * _ * _
This commit is contained in:
parent
a29bbeee41
commit
e84354666a
2 changed files with 11 additions and 4 deletions
|
|
@ -439,6 +439,13 @@ proc setCmd*(conf: ConfigRef, cmd: Command) =
|
|||
proc setCommandEarly*(conf: ConfigRef, command: string) =
|
||||
conf.command = command
|
||||
setCmd(conf, command.parseCommand)
|
||||
# command early customizations
|
||||
# must be handled here to honor subsequent `--hint:x:on|off`
|
||||
case conf.cmd
|
||||
of cmdRst2html, cmdRst2tex: # xxx see whether to add others: cmdGendepend, etc.
|
||||
conf.foreignPackageNotes = {hintSuccessX}
|
||||
else:
|
||||
conf.foreignPackageNotes = foreignPackageNotesDefault
|
||||
|
||||
proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo;
|
||||
conf: ConfigRef) =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue