File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -344,6 +344,14 @@ private static function guess_url( $assoc_args ) {
344344 return false ;
345345 }
346346
347+ /**
348+ * Checks if the arguments passed to the WP-CLI binary start with the specified prefix.
349+ *
350+ * @param array $prefix An array of strings specifying the expected start of the arguments passed to the WP-CLI binary.
351+ * For example, `['user', 'list']` checks if the arguments passed to the WP-CLI binary start with `user list`.
352+ *
353+ * @return bool `true` if the arguments passed to the WP-CLI binary start with the specified prefix, `false` otherwise.
354+ */
347355 private function cmd_starts_with ( $ prefix ) {
348356 return array_slice ( $ this ->arguments , 0 , count ( $ prefix ) ) === $ prefix ;
349357 }
You can’t perform that action at this time.
0 commit comments