Skip to contents

(Deprecated) Full parsing of command line arguments

Usage

cmd_parse_args(x)

cmd_parse_key_val(x)

Arguments

x

A vector of command line arguments.

Value

A list of parsed arguments

Examples

x = c("--date=2021", "--hi-w=y", "--hi_w=y", "./file-info.txt", "--hi")
cmd_parse_args(x)
#> $args
#> [1] "./file-info.txt"
#> 
#> $named
#>   date   hi-w   hi_w 
#> "2021"    "y"    "y" 
#> 
#> $opts
#> [1] "--hi"
#>