OptionParserOption-class {optparse}R Documentation

Class "OptionParserOption"

Description

A class that defines how optparse should react to a given option it finds on the command line.

Slots

short_flag:
A string of the desired short flag comprised of the “-” followed by a letter.
long_flag:
A string of the desired long flag comprised of “–” followed by a sequence of letters.
action:
A character string that describes the action optparse should take when it encounters an option, either “store”, “store_true”, or “store_false”.
type:
A character string that describes specifies which data type should be stored, either “logical”, “integer”, “double”, “complex”, or dQuote{character}
dest:
A character string that specifies which list field optparse will store option values.
default:
The default value optparse should use if it does not find the option on the command line.
help:
A character string describing the option.
metavar:
A character string that stands in for the option argument when printing help text.

Author(s)

Trevor Davis.

The documentation for Python's optparse library, which this package is based on, is Copyright 1990-2009, Python Software Foundation.

See Also

OptionParser relies on this class, use make_option and add_option to create an instance of this class.

Examples

showClass("OptionParserOption")

[Package optparse version 0.8 Index]