CLI ID argument should come after parent ID args
This commit is contained in:
parent
e365d1e01a
commit
828141c407
|
@ -97,13 +97,13 @@ class WC_CLI_Runner {
|
|||
// Define IDs that we are looking for in the routes (in addition to id)
|
||||
// so that we can pass it to the rest command, and use it here to generate documentation.
|
||||
$supported_ids = array(
|
||||
'id' => __( 'ID.', 'woocommerce' ),
|
||||
'product_id' => __( 'Product ID.', 'woocommerce' ),
|
||||
'customer_id' => __( 'Customer ID.', 'woocommerce' ),
|
||||
'order_id' => __( 'Order ID.', 'woocommerce' ),
|
||||
'refund_id' => __( 'Refund ID.', 'woocommerce' ),
|
||||
'attribute_id' => __( 'Attribute ID.', 'woocommerce' ),
|
||||
'zone_id' => __( 'Zone ID.', 'woocommerce' ),
|
||||
'id' => __( 'ID.', 'woocommerce' ),
|
||||
);
|
||||
$rest_command->set_supported_ids( $supported_ids );
|
||||
$positional_args = array_keys( $supported_ids );
|
||||
|
|
Loading…
Reference in New Issue