Description Usage Arguments Value References Examples
docopt
creates your command-line interface based on its
description that you pass as doc
.
Such description can contain
–options, <positional-argument>, commands, which could be
[optional], (required), (mutually | exclusive) or repeated...
1 2 3 4 5 6 7 8 9 10 |
doc |
|
args |
|
name |
Currently not used |
help |
|
version |
|
strict |
|
strip_names |
if |
quoted_args |
if |
named list with all parsed options, arguments and commands.
1 2 3 4 5 6 7 8 | "Usage: my_program.R [-hso FILE] [--quiet | --verbose] [INPUT ...]
-h --help show this
-s --sorted sorted output
-o FILE specify output file [default: ./test.txt]
--quiet print less text
--verbose print more text" -> doc
docopt(doc, "-s --quiet")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.