Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion php/class-wp-cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -1289,7 +1289,15 @@ public static function get_config( $key = null ) {
* @category Execution
*
* @param string $command WP-CLI command to run, including arguments.
* @param array $options Configuration options for command execution.
* @param array $options {
* Configuration options for command execution.
*
* @type bool $launch Launches a new process (true) or reuses the existing process (false). Default: true.
* @type bool $exit_error Halts the script on error. Default: true.
* @type bool|string $return Returns output as an object when set to 'all' (string), return just the 'stdout', 'stderr', or 'return_code' (string) of command, or print directly to stdout/stderr (false). Default: false.
* @type bool|string $parse Parse returned output as 'json' (string); otherwise, output is unchanged (false). Default: false.
* @param array $command_args Contains additional command line arguments for the command. Each element represents a single argument. Default: empty array.
* }
* @return mixed
*/
public static function runcommand( $command, $options = [] ) {
Expand Down
Loading