Add runtime_args to options array for runcommand by mrsdizzie · Pull Request #5722 · wp-cli/wp-cli
Allow a caller to pass runtime arguments to WP_CLI::runcommand so that it is possible to store all 'default' options in one place. ex if you want to avoid plugins and themes per default in a script that calls runcommand a lot: ``` $default_cli_opts = array( 'return' => 'all', 'exit_error' => false, 'runtime_args' => array( '--skip-themes', '--skip-plugins' ), ); $output = WP_CLI::runcommand( 'option get siteurl', $default_cli_opts); ```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters