Skip to content

Commit

Permalink
rewriting documentation for precommit_docopt yet again
Browse files Browse the repository at this point in the history
  • Loading branch information
kcphila committed Oct 6, 2023
1 parent e428d03 commit 7bc52ad
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,11 @@ git_init <- function(path = ".") {
#' Provide a singular interface for hook calls to docopt
#'
#' docopt provides different processing for a single string
#' than an array/vector, and so this function wraps docopt
#' to
#' than an array/vector. As `"string"`` and `c("string")`
#' are semantically equivalent in R, this can create problems
#' when a single parameter is provided. Thus, this function
#' wraps docopt to ensure that the args will always be
#' interpretted as a vector.
#'
#' @param doc `character` vector with command line specification
#' @param args `character` vector of commandline arguments.
Expand Down

0 comments on commit 7bc52ad

Please sign in to comment.