You can split a statement over multiple lines by adding a `\` (backslash) before hitting Return.
If you type `history` and hit Return, WP-CLI will print the list of previously evaluated statements, which you can copy+paste into a PHP file.
+
+## OPTIONS
+
+* `--basic`:
+
+ Start in fail-safe mode, even if Boris is available.
/**
* Interactive PHP console.
+ *
+ * @synopsis [--basic]
*/
- public function __invoke() {
+ public function __invoke( $_, $assoc_args ) {
\WP_CLI::line( 'Type "exit" to close session.' );
$implementations = array(
'\\WP_CLI\\REPL',
);
+ if ( isset( $assoc_args['basic'] ) ) {
+ unset( $implementations[0] );
+ }
+
foreach ( $implementations as $class ) {
if ( class_exists( $class ) ) {
$repl = new $class( 'wp> ' );