View source: R/parse_options.R
parse_options | R Documentation |
Parse the available options (arguments) for a given command line tool.
parse_options(
path,
command = NA,
subcommand = NA,
help_args = c("-h", "--help", "-help", "-H"),
args_sep = "\n",
args_start = "-+[a-z]+",
col_names = c("arg", "description"),
verbose = TRUE
)
path |
Path to executable file. |
command |
Modifying command for tool (e.g. "submodule" when running "git submodule add"). |
subcommand |
Modifying subcommand for tool (e.g. "add" when running "git submodule add"). |
help_args |
Help arguments to use when identifying argument options. |
args_sep |
Regex pattern that separates each new argument. |
args_start |
Regex pattern to search for when detecting the beginning of each argument description. |
col_names |
Column names after parsing. |
verbose |
Print messages. |
opts <- echoconda::parse_options(path="curl")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.