stripe / stripe-cli

A command-line tool for Stripe
https://stripe.com/docs/stripe-cli
Apache License 2.0
1.61k stars 374 forks source link

`--latest` flag does not exit #1223

Open lyrixx opened 3 months ago

lyrixx commented 3 months ago

Issue

$ stripe customers retrieve cus_QZiNVQtbtcoGi4 --latest
unknown flag: --latest

Link to the doc: https://docs.stripe.com/stripe-cli/overview#specify-an-api-version-while-running-requests

Expected Behavior

It should work

Steps to reproduce

$ stripe customers retrieve cus_QZiNVQtbtcoGi4 --latest
{....}

Environment

tomer-stripe commented 3 months ago

Hey @lyrixx! Sorry that's a mistake on the docs, --latest only works for listen. On resource commands like customers you need to specify --stripe-version manually if you want to change it.

lyrixx commented 2 months ago

Np, Do you expects something from me, or you gonna fix it on your side?