Learn R Programming

argparser (version 0.7.1)

arg_parser: 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)

Value

a new arg.parser object

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.

Examples

Run this code
p <- arg_parser("A test program")

Run the code above in your browser using DataLab