@@ -199,7 +199,7 @@ public function browse( $_, $assoc_args ) {
199199 * [--insecure]
200200 * : Retry downloads without certificate validation if TLS handshake fails. Note: This makes the request vulnerable to a MITM attack.
201201 *
202- * [--no- interaction]
202+ * [--< interaction> ]
203203 * : Do not ask any interactive questions. Useful for scripting.
204204 *
205205 * ## EXAMPLES
@@ -219,10 +219,10 @@ public function browse( $_, $assoc_args ) {
219219 public function install ( $ args , $ assoc_args ) {
220220 list ( $ package_name ) = $ args ;
221221
222- $ insecure = (bool ) Utils \get_flag_value ( $ assoc_args , 'insecure ' , false );
223- $ no_interaction = ( bool ) Utils \get_flag_value ( $ assoc_args , 'no- interaction ' , false );
222+ $ insecure = (bool ) Utils \get_flag_value ( $ assoc_args , 'insecure ' , false );
223+ $ interaction = Utils \get_flag_value ( $ assoc_args , 'interaction ' , true );
224224
225- if ( $ no_interaction ) {
225+ if ( ! $ interaction ) {
226226 $ this ->set_non_interactive_mode ();
227227 }
228228
@@ -513,7 +513,7 @@ public function path( $args ) {
513513 *
514514 * ## OPTIONS
515515 *
516- * [--no- interaction]
516+ * [--< interaction> ]
517517 * : Do not ask any interactive questions. Useful for scripting.
518518 *
519519 * ## EXAMPLES
@@ -536,9 +536,9 @@ public function path( $args ) {
536536 * @param array $assoc_args Associative array of options.
537537 */
538538 public function update ( $ _ , $ assoc_args = [] ) {
539- $ no_interaction = ( bool ) Utils \get_flag_value ( $ assoc_args , 'no- interaction ' , false );
539+ $ interaction = Utils \get_flag_value ( $ assoc_args , 'interaction ' , true );
540540
541- if ( $ no_interaction ) {
541+ if ( ! $ interaction ) {
542542 $ this ->set_non_interactive_mode ();
543543 }
544544
@@ -584,7 +584,7 @@ public function update( $_, $assoc_args = [] ) {
584584 * [--insecure]
585585 * : Retry downloads without certificate validation if TLS handshake fails. Note: This makes the request vulnerable to a MITM attack.
586586 *
587- * [--no- interaction]
587+ * [--< interaction> ]
588588 * : Do not ask any interactive questions. Useful for scripting.
589589 *
590590 * ## EXAMPLES
@@ -599,10 +599,10 @@ public function update( $_, $assoc_args = [] ) {
599599 public function uninstall ( $ args , $ assoc_args ) {
600600 list ( $ package_name ) = $ args ;
601601
602- $ insecure = (bool ) Utils \get_flag_value ( $ assoc_args , 'insecure ' , false );
603- $ no_interaction = ( bool ) Utils \get_flag_value ( $ assoc_args , 'no- interaction ' , false );
602+ $ insecure = (bool ) Utils \get_flag_value ( $ assoc_args , 'insecure ' , false );
603+ $ interaction = Utils \get_flag_value ( $ assoc_args , 'interaction ' , true );
604604
605- if ( $ no_interaction ) {
605+ if ( ! $ interaction ) {
606606 $ this ->set_non_interactive_mode ();
607607 }
608608
0 commit comments