Skip to content

Commit

Permalink
stripe: Fix invoice generator's argument parsing to work with clap v4
Browse files Browse the repository at this point in the history
Fixes this error:
```
Command stripe: Argument or group 'all-tenants' specified in 'required_unless*' for 'tenants' does not exist
```
  • Loading branch information
jshearer committed Nov 15, 2024
1 parent f8c1d8d commit aea55f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/billing-integrations/src/stripe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub struct PublishInvoice {
#[clap(long)]
stripe_api_key: String,
/// Comma-separated list of tenants to publish invoices for
#[clap(long, value_delimiter = ',', required_unless_present("all-tenants"))]
#[clap(long, value_delimiter = ',', required_unless_present("all_tenants"))]
tenants: Vec<String>,
/// Generate invoices for all tenants that have bills in the provided month.
#[clap(long, conflicts_with("tenants"))]
Expand Down

0 comments on commit aea55f0

Please sign in to comment.