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, Jim Nikelski, Kirill Müller, Peter Humburg, and Rich FitzJohn.
Date of publication
2015-10-03 07:58:03
Maintainer
Trevor L Davis <trevor.l.davis@gmail.com>
License
GPL (>= 2)
Version
1.3.2
URLs

View on CRAN

Man pages

add_make_option
Functions to enable our OptionParser to recognize specific...
OptionParser
A function to create an instance of a parser object
OptionParser-class
Option Parser
OptionParserOption-class
Class to hold information about command-line options
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
optparse/COPYING
optparse/inst
optparse/inst/COPYRIGHTS
optparse/inst/doc
optparse/inst/doc/optparse.Rrst
optparse/inst/doc/optparse.R
optparse/inst/doc/optparse.pdf
optparse/exec
optparse/exec/example.R
optparse/exec/display_file.R
optparse/tests
optparse/tests/run-all.R
optparse/tests/testthat
optparse/tests/testthat/test-optparse.R
optparse/NAMESPACE
optparse/NEWS
optparse/R
optparse/R/optparse.R
optparse/R/optparse-package.R
optparse/vignettes
optparse/vignettes/optparse.Rrst
optparse/MD5
optparse/build
optparse/build/vignette.rds
optparse/DESCRIPTION
optparse/man
optparse/man/add_make_option.Rd
optparse/man/print_help.Rd
optparse/man/OptionParser.Rd
optparse/man/OptionParserOption-class.Rd
optparse/man/OptionParser-class.Rd
optparse/man/optparse-package.Rd
optparse/man/parse_args.Rd