Skip to contents

Check if a vector of options are valid

Usage

check_options(opts = NULL)

Arguments

opts

A vector of options to check.

Value

Returns a list with two elements: valid_options and invalid_options.

Examples

check_options(c("mirostat", "invalid_option"))
#> $valid_options
#> [1] "mirostat"
#> 
#> $invalid_options
#> [1] "invalid_option"
#> 
check_options(c("mirostat", "num_predict"))
#> $valid_options
#> [1] "mirostat"    "num_predict"
#> 
#> $invalid_options
#> character(0)
#>