Skip to content

Commit 7bc52ad

Browse files
committed
rewriting documentation for precommit_docopt yet again
1 parent e428d03 commit 7bc52ad

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

R/utils.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,11 @@ git_init <- function(path = ".") {
8686
#' Provide a singular interface for hook calls to docopt
8787
#'
8888
#' docopt provides different processing for a single string
89-
#' than an array/vector, and so this function wraps docopt
90-
#' to
89+
#' than an array/vector. As `"string"`` and `c("string")`
90+
#' are semantically equivalent in R, this can create problems
91+
#' when a single parameter is provided. Thus, this function
92+
#' wraps docopt to ensure that the args will always be
93+
#' interpretted as a vector.
9194
#'
9295
#' @param doc `character` vector with command line specification
9396
#' @param args `character` vector of commandline arguments.

0 commit comments

Comments
 (0)