Description Usage Arguments Examples
Validate option flag
1 | valid_flag(flag, mark = "-")
|
flag |
character |
mark |
flag marker |
1 2 3 4 5 6 7 | valid_flag("op")
valid_flag("-op")
valid_flag(" -op ")
valid_flag(" op ")
valid_flag("-op ")
# long options
valid_flag("h", mark = "--")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.