arg_parser: Create an argument parser.

Description Usage Arguments Details Value Examples

View source: R/argparser.R

Description

This function creates an arg.parser object. It infers the program name from the file name of the invoked script.

Usage

1
arg_parser(description, name = NULL, hide.opts = FALSE)

Arguments

description

description of the program

name

name of the program

hide.opts

hide the --opts argument

Details

The argument parser will be created by default with two arguments: --help and --opts. The latter argument can be used for loading a list of argument values that are saved in a RDS file.

Value

a new arg.parser object

Examples

1
p <- arg_parser("A test program")

argparser documentation built on March 8, 2021, 9:07 a.m.