Skip to content

Commit 0816747

Browse files
committed
Clarify that --coupons flag is equivalent to --coupon-ratio=1.0
1 parent 5b53925 commit 0816747

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Generate orders with random dates between `--date-start` and `--date-end`.
3434
Generate orders with a specific status.
3535
- `wp wc generate orders <nr of orders> --status=completed`
3636

37-
Apply coupons to a percentage of generated orders (0.0-1.0). If no coupons exist, 6 will be created automatically (3 fixed cart, 3 percentage).
37+
Apply coupons to a percentage of generated orders (0.0-1.0). If no coupons exist, 6 will be created automatically (3 fixed cart, 3 percentage). Note: `--coupons` flag is equivalent to `--coupon-ratio=1.0`.
3838
- `wp wc generate orders <nr of orders> --coupon-ratio=0.5`
3939

4040
Refund a percentage of completed orders (0.0-1.0). Refunds will be split evenly between partial and full, and 25% of partial refunds will receive a second partial refund.

includes/CLI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ function () use ( $progress ) {
316316
array(
317317
'name' => 'coupons',
318318
'type' => 'flag',
319-
'description' => 'Create and apply a coupon to each generated order.',
319+
'description' => 'Create and apply a coupon to each generated order. Equivalent to --coupon-ratio=1.0.',
320320
'optional' => true,
321321
),
322322
array(

0 commit comments

Comments
 (0)