docopt.R
docopt.R copied to clipboard
Command-line interface description language for R (http://docopt.org)
I have a long message docstring. If I use the `-h` parameter, the full message is shown. However, for any errors, it gets cut off. This did not happen with...
It would be very neat if `docopt::docopt` parsing of the "doc"( "help") string would allow for formating using ANSI control sequences. docopt seems to be confused when it matches the...
I have the following program: ``` doc
I think the post at https://rmflight.github.io/post/docopt-numeric-options/ is still valid. I have to do as.integer or similar conversion to have proper types. I wish they could be infered by the library
First of all - big thank you to the authors of this package. My scripts became 100 lines lighter and less bug-prone. My issue is with the failing message of...
Thanks for this useful package. I'd like to pass arguments to docopt for which the name have not explicitly defined (becauuse they are dynamic). In R, we know the concept...
Unfortunately, #19 does not seem resolved, in fact made things worse for my use case. I caught the command line args with `commandArgs(TRUE)` so I you should be able to...
Newbie here. Here is example from http://docopt.org/: ``` 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 | --help...
Is it possible to pass arguments to a script using docopt when sourcing this script? I tried redefining commandArgs as suggested in http://stackoverflow.com/a/14526329/1878788, but this fails. for instance, my docopt...