Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes compilation with nim 2 and the test-script #58

Merged
merged 2 commits into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docopt.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ requires "regex >= 0.11.1"
task test, "Test":
exec "nimble c --verbosity:0 -r -y test/test"
for f in listFiles("examples"):
if f[^4..^1] == ".nim": exec "nim compile --verbosity:0 --hints:off " & f
if f[^4..^1] == ".nim": exec "nimble compile --verbosity:0 --hints:off " & f
2 changes: 1 addition & 1 deletion src/docopt.nim
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ proc extras(help: bool, version: string, options: seq[Pattern], doc: string) =


proc docopt_exc(doc: string, argv: seq[string], help: bool, version: string,
options_first = false): Table[string, Value] =
options_first = false): Table[string, Value] {.gcsafe.} =
var doc = doc.replace("\r\l", "\l")

var docopt_exit = new_exception(DocoptExit, "")
Expand Down