fixes #9120
This commit is contained in:
parent
d91d1865b8
commit
9526009e0e
3 changed files with 2 additions and 12 deletions
|
|
@ -237,7 +237,7 @@ when declared(os.paramCount):
|
|||
proc remainingArgs*(p: OptParser): seq[TaintedString] {.rtl, extern: "npo$1".} =
|
||||
## retrieves the rest of the command line that has not been parsed yet.
|
||||
result = @[]
|
||||
for i in p.idx..<p.cmds.len: result.add p.cmds[i]
|
||||
for i in p.idx..<p.cmds.len: result.add TaintedString(p.cmds[i])
|
||||
|
||||
iterator getopt*(p: var OptParser): tuple[kind: CmdLineKind, key, val: TaintedString] =
|
||||
## This is an convenience iterator for iterating over the given OptParser object.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue