parse.args: Parse the Command-Line Arguments into an Environment

parse.argsR Documentation

Parse the Command-Line Arguments into an Environment

Description

Parse any series of arguments into an environment using an argument parser.

Usage

## S4 method for signature 'essentials_ArgumentParser'
parse.args(args = Args(),
    warnPartialMatchArgs = getOption("warnPartialMatchArgs", FALSE))

Arguments

args

character vector. The arguments to parse into an environment.

warnPartialMatchArgs

logical. If true, warns if partial matching is used in argument matching.

Details

When args is not provided, the arguments are provided from commandArgs(), but only if the executing script was run from the command-line / / terminal.

Value

an object of class "ParsedCommandArgs".


ArcadeAntics/essentials documentation built on Nov. 7, 2024, 4:33 p.m.