File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -178,19 +178,24 @@ public static function coupons( $args, $assoc_args ) {
178178}
179179
180180WP_CLI ::add_command ( 'wc generate products ' , array ( 'WC\SmoothGenerator\CLI ' , 'products ' ), array (
181+ 'shortdesc ' => 'Generate products. ' ,
181182 'synopsis ' => array (
182183 array (
183- 'name ' => 'amount ' ,
184- 'type ' => 'positional ' ,
185- 'optional ' => true ,
186- 'default ' => 100 ,
184+ 'name ' => 'amount ' ,
185+ 'type ' => 'positional ' ,
186+ 'description ' => 'The number of products to generate. ' ,
187+ 'optional ' => true ,
188+ 'default ' => 100 ,
187189 ),
188190 array (
189- 'name ' => 'type ' ,
190- 'type ' => 'assoc ' ,
191- 'optional ' => true ,
191+ 'name ' => 'type ' ,
192+ 'type ' => 'assoc ' ,
193+ 'description ' => 'Specify one type of product to generate. Otherwise defaults to a mix. ' ,
194+ 'optional ' => true ,
195+ 'options ' => array ( 'simple ' , 'variable ' ),
192196 ),
193197 ),
198+ 'longdesc ' => "## EXAMPLES \n\nwc generate products 100 \n\nwc generate products 10 --type=variable " ,
194199) );
195200
196201WP_CLI ::add_command ( 'wc generate orders ' , array ( 'WC\SmoothGenerator\CLI ' , 'orders ' ), array (
You can’t perform that action at this time.
0 commit comments