@@ -79,7 +79,7 @@ public function version( $args, $assoc_args ) {
7979 * [--activate]
8080 * : If set, the plugin will be activated immediately after install.
8181 *
82- * [--network- activate]
82+ * [--activate-network ]
8383 * : If set, the plugin will be network activated immediately after install
8484 *
8585 *
@@ -89,7 +89,7 @@ public function version( $args, $assoc_args ) {
8989 * wp gf install --force
9090 * wp gf install --key=[A valid Gravity Forms License Key]
9191 * wp gf install gravityformspolls key=[1234ABC]
92- * @synopsis [<slug>] [--key=<key>] [--version=<version>] [--force] [--activate] [--network- activate]
92+ * @synopsis [<slug>] [--key=<key>] [--version=<version>] [--force] [--activate] [--activate-network ]
9393 */
9494 public function install ( $ args , $ assoc_args ) {
9595 $ slug = isset ( $ args [0 ] ) ? $ args [0 ] : 'gravityforms ' ;
@@ -122,7 +122,7 @@ public function install( $args, $assoc_args ) {
122122
123123 $ activate = WP_CLI \Utils \get_flag_value ( $ assoc_args , 'activate ' , false );
124124
125- $ network_activate = WP_CLI \Utils \get_flag_value ( $ assoc_args , 'network- activate ' , false );
125+ $ activate_network = WP_CLI \Utils \get_flag_value ( $ assoc_args , 'activate-network ' , false );
126126
127127 $ command = sprintf ( 'plugin install "%s" ' , $ download_url );
128128
@@ -138,9 +138,9 @@ public function install( $args, $assoc_args ) {
138138 $ command .= ' --activate ' ;
139139 }
140140
141- if ( $ network_activate ) {
142- $ install_assoc_args ['network- activate ' ] = true ;
143- $ command .= ' --network- activate ' ;
141+ if ( $ activate_network ) {
142+ $ install_assoc_args ['activate-network ' ] = true ;
143+ $ command .= ' --activate-network ' ;
144144 }
145145
146146 $ options = array (
0 commit comments