opt_help {optigrab} | R Documentation |
Automatic usage/help information
Description
Prints program usage information and, if used non-interactively, exits.
Usage
opt_help(name = c("help", "?"), opts = commandArgs())
Arguments
name |
character; vector of names/aliases to use |
opts |
character; vector from which to parse options
(default: Usage information is generated from |
Value
logical; returns TRUE
if command-line options contain a help flag,
FALSE
otherwise. Mainly opt_help
is used for side-effects of
printing usage/help information,
See Also
Examples
opts <- c( "--foo", "bar")
optigrab:::opt_grab( "--foo")
optigrab:::opt_help()
[Package optigrab version 0.9.2.1 Index]