Skip to contents

Option parser

OptionParser()
A function to create an instance of a parser object
make_option() add_option()
Functions to enable our OptionParser to recognize specific command line options.
parse_args() parse_args2()
Parse command line options.
print_help()
Printing an usage message from an OptionParser object

Help formatters

IndentedHelpFormatter() TitledHelpFormatter()
Builtin help text formatters

Helper functions

rscript_filename()
Get the R script file name
shell_quote()
Quote strings for the shell if needed

S4 classes

OptionParser-class
Option Parser
OptionParserOption-class OptionParserOption
Class to hold information about command-line options

Package overview

optparse-package optparse
Command line option parser