docopt.nim
docopt.nim copied to clipboard
Command line arguments parser that will make you smile (port of docopt to Nim)
This adds a module which allows very easy dispatch of procedures from the parsed arguments.
Not sure if this is a real issue, so just reporting and in the case can be ignored :) I'm currently using `Version 1.2.6`: ```` {path}/.nimble/pkgs/docopt-0.6.8/docopt.nim(113, 1) Warning: observable stores...
My program: ```nim let doc = """ Naval Fate. Usage: naval_fate ship new ... naval_fate ship move [--speed=] naval_fate ship shoot naval_fate mine (set|remove) [--moored | --drifting] naval_fate (-h |...
This should address #22 - following `args = docopt(...)`, `args["foo"].isNil` will return `true` if the `foo` argument wasn't set.
I have an `isNil` check in my code that used to work with the older version. Now it breaks because `isNil` is false due to the value being "nil," not...
Unpack macro
The result of the docopt call seems a bit unwieldy to use. What about a macro to unpack the table into pretty and readly usable variables, kinda like [commandeer](https://github.com/fenekku/commandeer)? ```...
Fixes #59.
Hello, [GCC14 changed some warning into errors](https://gcc.gnu.org/gcc-14/changes.html). This affects this package. I have found this error while building mosdepth: ``` /build/.cache/nim/mosdepth_d/@m..@s..@[email protected]@[email protected]@sdocopt.nim.c: In function ‘single_match__OOZOOZOOZOnimbleZpkgs50Zdocopt4548O55O4945515655f49ae4955f51b55545048c55564952cf5252a5350d51d5749b56574854e57Zdocopt_u2684’: /build/.cache/nim/mosdepth_d/@m..@s..@[email protected]@[email protected]@sdocopt.nim.c:6103:51: error: assignment to ‘tyObject_PatterncolonObjectType___6EsHdno9aUDLhFZb13CV9bjg *’...