Skip to content

Commit

Permalink
Handle hidden parameters in config files
Browse files Browse the repository at this point in the history
  • Loading branch information
zah committed May 16, 2021
1 parent c222804 commit 66a17f6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions confutils/config_file.nim
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ proc optionalizeFields(CF, confType: NimNode): NimNode =

var recordDef = getImpl(confType)
for field in recordFields(recordDef):
if field.readPragma"hidden" != nil or
field.readPragma"command" != nil or
if field.readPragma"command" != nil or
field.readPragma"argument" != nil:
continue

Expand Down Expand Up @@ -95,9 +94,6 @@ proc generateSetters(optType, confType, CF: NimNode): (NimNode, NimNode, int) =
a = b.get()

for field in recordFields(recordDef):
if field.readPragma"hidden" != nil:
continue

if field.readPragma"command" != nil or
field.readPragma"argument" != nil:

Expand Down

0 comments on commit 66a17f6

Please sign in to comment.