arg_parser: Create an argument parser.

View source: R/argparser.R

arg_parserR Documentation

Create an argument parser.

Description

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

Usage

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

p <- arg_parser("A test program")


argparser documentation built on May 29, 2024, 4:06 a.m.