getnarg: Extract narg from an argument

Description Usage Arguments Value Methods (by class)

Description

simple method for extracting the values of narg. Mainly thought to be useful for debugging purposes.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
getnarg(x, ...)

## S3 method for class 'cmd_arg'
getnarg(x, ...)

## S3 method for class 'cmd_parser'
getnarg(x, ...)

## S3 method for class 'cmd_arg'
getparsefunc(x, ...)

## S3 method for class 'cmd_parser'
getparsefunc(x, ...)

## S3 method for class 'cmd_arg'
getunparsedargs(x, ...)

## S3 method for class 'cmd_parser'
getunparsedargs(x, ...)

## S3 method for class 'cmd_arg'
parseargs(x, ...)

## S3 method for class 'cmd_parser'
parseargs(x, ...)

Arguments

x

an object of class cmd_arg or cmd_parser

...

further parameters passed to method

Value

if x is an object of cmd_arg a single character element specifying the value of narg, otherwise a named vector with narg for each argument in the parser

Methods (by class)


Bijaelo/cmdline.arguments documentation built on June 12, 2021, 1:42 p.m.