optparse: Command line option parser.

Share:

A command line parser inspired by Python's 'optparse' library to be used with Rscript to write "#!" shebang scripts that accept short and long flag/options.

Author
Trevor L Davis. Some documentation and examples ported from Allen Day's getopt package. Some documentation from the optparse Python module by the Python Software Foundation. Contributions from Steve Lianoglou and Jim Nikelski.
Date of publication
2013-04-29 01:55:14
Maintainer
Trevor L Davis <trevor.l.davis@stanford.edu>
License
GPL (>= 2)
Version
1.0.2
URLs

View on R-Forge

Man pages

add_make_option
Functions to enable our OptionParser to recognize specific...
OptionParser
A function to create an instance of a parser object
optparse-package
Command line option parser
parse_args
Parse command line options.
print_help
Printing an usage message from an OptionParser object

Files in this package

optparse/DESCRIPTION
optparse/LICENSE
optparse/NAMESPACE
optparse/NEWS
optparse/R
optparse/R/optparse-package.R
optparse/R/optparse.R
optparse/exec
optparse/exec/display_file.R
optparse/exec/example.R
optparse/inst
optparse/inst/doc
optparse/inst/doc/optparse.R
optparse/inst/doc/optparse.Rnw
optparse/inst/doc/optparse.pdf
optparse/inst/tests
optparse/inst/tests/test-optparse.R
optparse/man
optparse/man/OptionParser.Rd
optparse/man/add_make_option.Rd
optparse/man/optparse-package.Rd
optparse/man/parse_args.Rd
optparse/man/print_help.Rd
optparse/tests
optparse/tests/run-all.R