Parser: Create Argument Parser

Description Usage Format Examples

Description

This function produces the argument parsing object.

Usage

1

Format

An object of class R6ClassGenerator of length 24.

Examples

1
2
3
4
args <- arg_parser() %>%
   add_option(c('--verbose', '-v'), is_flag = TRUE, help = 'Prints verbose output.') %>%
   add_option('--multiply', type = 'numeric', help = 'Multiply by given number.') %>%
   parse_args(args = c('--verbose', '--multiply', '3'))

travisbyrum/clinkr documentation built on May 31, 2019, 7:46 p.m.