Skip to content

Instantly share code, notes, and snippets.

@gradha
Created February 13, 2013 23:31
Show Gist options
  • Save gradha/4949394 to your computer and use it in GitHub Desktop.
Save gradha/4949394 to your computer and use it in GitHub Desktop.
proc parse*(expected: seq[string] = @[],
bad_prefixes = @["-", "--"], end_of_parameters = "--",
quit_on_failure = true) =
nil
template tp(expected: seq[string] = @[],
bad_prefixes, end_of_parameters): expr =
parse(expected,
quit_on_failure = false, bad_prefixes = bad_prefixes,
end_of_parameters = end_of_parameters)
when isMainModule:
discard(tp())
@gradha
Copy link
Author

gradha commented Feb 13, 2013

Test case for nim-lang/Nim#331

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment