make travis green again
This commit is contained in:
parent
ce1047f2ae
commit
a6c7972086
1 changed files with 18 additions and 18 deletions
|
|
@ -78,7 +78,7 @@ when declared(os.paramCount):
|
||||||
# we cannot provide this for NimRtl creation on Posix, because we can't
|
# we cannot provide this for NimRtl creation on Posix, because we can't
|
||||||
# access the command line arguments then!
|
# access the command line arguments then!
|
||||||
|
|
||||||
proc initOptParser*(cmdline = ""): OptParser {.rtl, extern: "npo$1String".} =
|
proc initOptParser*(cmdline = ""): OptParser =
|
||||||
## inits the option parser. If ``cmdline == ""``, the real command line
|
## inits the option parser. If ``cmdline == ""``, the real command line
|
||||||
## (as provided by the ``OS`` module) is taken.
|
## (as provided by the ``OS`` module) is taken.
|
||||||
result.pos = 0
|
result.pos = 0
|
||||||
|
|
@ -94,23 +94,23 @@ when declared(os.paramCount):
|
||||||
result.key = TaintedString""
|
result.key = TaintedString""
|
||||||
result.val = TaintedString""
|
result.val = TaintedString""
|
||||||
|
|
||||||
proc initOptParser*(cmdline: seq[string]): OptParser {.rtl, extern: "npo$1Seq".} =
|
proc initOptParser*(cmdline: seq[string]): OptParser =
|
||||||
## inits the option parser. If ``cmdline.len == 0``, the real command line
|
## inits the option parser. If ``cmdline.len == 0``, the real command line
|
||||||
## (as provided by the ``OS`` module) is taken.
|
## (as provided by the ``OS`` module) is taken.
|
||||||
result.pos = 0
|
result.pos = 0
|
||||||
result.inShortState = false
|
result.inShortState = false
|
||||||
result.cmd = ""
|
result.cmd = ""
|
||||||
if cmdline.len != 0:
|
if cmdline.len != 0:
|
||||||
for i in 0..<cmdline.len:
|
for i in 0..<cmdline.len:
|
||||||
result.cmd.add quote(cmdline[i])
|
result.cmd.add quote(cmdline[i])
|
||||||
result.cmd.add ' '
|
result.cmd.add ' '
|
||||||
else:
|
else:
|
||||||
for i in countup(1, paramCount()):
|
for i in countup(1, paramCount()):
|
||||||
result.cmd.add quote(paramStr(i).string)
|
result.cmd.add quote(paramStr(i).string)
|
||||||
result.cmd.add ' '
|
result.cmd.add ' '
|
||||||
result.kind = cmdEnd
|
result.kind = cmdEnd
|
||||||
result.key = TaintedString""
|
result.key = TaintedString""
|
||||||
result.val = TaintedString""
|
result.val = TaintedString""
|
||||||
|
|
||||||
proc handleShortOption(p: var OptParser) =
|
proc handleShortOption(p: var OptParser) =
|
||||||
var i = p.pos
|
var i = p.pos
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue