summary refs log tree commit diff stats
path: root/lib/pure/parseopt2.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pure/parseopt2.nim')
-rw-r--r--lib/pure/parseopt2.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/parseopt2.nim b/lib/pure/parseopt2.nim
index 5e79d8a18..7638171d1 100644
--- a/lib/pure/parseopt2.nim
+++ b/lib/pure/parseopt2.nim
@@ -119,7 +119,7 @@ proc cmdLineRest*(p: TOptParser): TaintedString {.rtl, extern: "npo$1", deprecat
 type
   TGetoptResult* = tuple[kind: TCmdLineKind, key, val: TaintedString]
 
-when defined(paramCount):
+when declared(paramCount):
   iterator getopt*(): TGetoptResult =
     ## This is an convenience iterator for iterating over the command line.
     ## This uses the TOptParser object. Example: