Skip to contents

Group is the parent R6 class of ArgumentGroup and MutuallyExclusiveGroup. It provides the add_argument() method shared by both kinds of group. Users won't usually work with Group objects directly.

Methods


Group$new()

Create a new Group object. Users should not call this directly but instead use the add_argument_group() or add_mutually_exclusive_group() methods.

Usage

Group$new(python_code, name)

Arguments

python_code

An internal object that accumulates the Python code used to build the parser.

name

Name of the Python variable holding this object.


Group$add_argument()

Define how a single command line argument should be parsed.

Usage

Group$add_argument(...)

Arguments

...

Arguments cleaned and passed to Python's add_argument() method. The type argument may be one of "logical", "integer", "double", "numeric", or "character".

Returns

NULL (invisibly).