reg_argument_list: Register command line arguments

View source: R/parse_command_line.R

reg_argument_listR Documentation

Register command line arguments

Description

Register command line arguments

Usage

reg_argument_list(plist)

Arguments

plist

list of lists of arguments: lparam, sparam, var, default, argType, help string

Examples

arguments <- list(
  list("--outfile","-o","outfile",NA,argsType$TypeValue,'location of output file'),
  list("--date","-d","date",NA,argsType$TypeValue,'specify date'),
  list("--msg","-m","msg",NA,argsType$TypeValue,'memo line message'),
  list("--amount","-a","amount",NA,argsType$TypeValue,'specify dollar amount'),
  list("--payee","-p","payee",NA,argsType$TypeValue,'specify payee'))
reg_argument_list(arguments)

jperkel/cmdparseR documentation built on Oct. 11, 2024, 10:11 a.m.