chrisvdm / redwoodjs-stripe

A Redwood/Stripe integration made easy
MIT License
46 stars 8 forks source link

improv: use modern yargs #102

Closed jtoar closed 1 year ago

jtoar commented 1 year ago

Yargs recommends using

See the example here: https://github.com/yargs/yargs#complex-example


When the CLI is run without any commands, nothing happens:

https://github.com/chrisvdm/redwoodjs-stripe/assets/32992335/a14b4619-4ea9-4475-a8bc-3d91808286c7

Using demmandCommand we can report an error:

https://github.com/chrisvdm/redwoodjs-stripe/assets/32992335/e1382f0a-3cb3-457b-8a6c-2cb22007ab75