CLI: Package Specific Command Line Interface

Description Usage Arguments

View source: R/CLI.R

Description

Package Specific Command Line Interface

Usage

1
2
CLI(commands = NULL, default = NULL, ARGS = commandArgs(TRUE), ...,
  package = NULL)

Arguments

commands

a character vector of command names that correspond to functions in the package's namespace – that are not necessarily exported. If NULL, then the package's namespace is looked up for function names with prefix 'CLI_'.

default

default command, that should be an element of commands. If NULL, then the CLI will have no default, and will require a command to be specified.

ARGS

list of parsed arguments passed to the command's function.

...

extra arguments passed to the package's CLI function.

package

name of the package that define the CLI entry points


renozao/CLIR documentation built on May 27, 2019, 5:52 a.m.