cmd_help_flags_suggest {cmdfun} | R Documentation |
Error & Suggest different flag name to user
Description
Error & Suggest different flag name to user
Usage
cmd_help_flags_suggest(suggest_names)
Arguments
suggest_names |
named character vector, names correspond to original value, values correspond to suggested replacement. |
Value
error message suggesting alternatives to user
Examples
user_flags <- list("output", "inpt")
valid_flags <- c("output", "input")
suggestions <- cmd_help_flags_similar(valid_flags, user_flags)
## Not run:
# Throws error
cmd_help_flags_suggest(suggestions)
## End(Not run)
[Package cmdfun version 1.0.2 Index]