diff options
author | def <dennis@felsin9.de> | 2015-03-10 15:34:15 +0100 |
---|---|---|
committer | def <dennis@felsin9.de> | 2015-03-10 15:34:15 +0100 |
commit | 69e2b61c0a990452045d2157c095edfe9225a59b (patch) | |
tree | de5814a76975912381ad5385f0d4bdefae5c675f /tests/manyloc | |
parent | 573fa9b8919d5ea5bcae8aaf7b7295c42526b6e4 (diff) | |
download | Nim-69e2b61c0a990452045d2157c095edfe9225a59b.tar.gz |
Fix tests a bit more
Diffstat (limited to 'tests/manyloc')
-rw-r--r-- | tests/manyloc/argument_parser/ex_wget.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/manyloc/argument_parser/ex_wget.nim b/tests/manyloc/argument_parser/ex_wget.nim index d36947b34..625a6f595 100644 --- a/tests/manyloc/argument_parser/ex_wget.nim +++ b/tests/manyloc/argument_parser/ex_wget.nim @@ -8,8 +8,8 @@ const PARAM_BACKGROUND = @["-b", "--background"] PARAM_OUTPUT = @["-o", "--output"] PARAM_NO_CLOBBER = @["-nc", "--no-clobber"] - PARAM_PROGRESS = "--progress" - PARAM_NO_PROXY = "--no-proxy" + PARAM_PROGRESS = @["--progress"] + PARAM_NO_PROXY = @["--no-proxy"] template P(tnames: varargs[string], thelp: string, ttype = PK_EMPTY, @@ -77,8 +77,8 @@ proc process_commandline(): Tcommandline_results = quit() echo "Will download to $1" % [result.options[PARAM_OUTPUT[0]].str_val] - if result.options.hasKey(PARAM_PROGRESS): - echo "Will use progress type $1" % [result.options[PARAM_PROGRESS].str_val] + if result.options.hasKey(PARAM_PROGRESS[0]): + echo "Will use progress type $1" % [result.options[PARAM_PROGRESS[0]].str_val] when isMainModule: |