Skip to content

Docopt fails to run on OS X and Nim v0.12.0 – could not import: pcre_free_study #13

@boydgreenfield

Description

@boydgreenfield

Example:

let doc = """
Usage: counted --help
       counted -v...
       counted go [go]
       counted (--path=<path>)...
       counted <file> <file>
Try: counted -vvvvvvvvvv
     counted go go
     counted --path ./here --path ./there
     counted this.txt that.txt
"""

import strutils
import docopt


let args = docopt(doc)
echo args

if args["-v"]:
    echo capitalize(repeat("very ", args["-v"].len - 1) & "verbose")

for path in @(args["--path"]):
    echo read_file(path)

Compiles fine, but returns the following error when you run it:

could not import: pcre_free_study

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions