Closed jtoar closed 1 year ago
Yargs recommends using
yargs
yargs/yargs
hideBin
yargs/helpers
parse
argv
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:
demmandCommand
https://github.com/chrisvdm/redwoodjs-stripe/assets/32992335/e1382f0a-3cb3-457b-8a6c-2cb22007ab75
Yargs recommends using
yargs
fromyargs/yargs
hideBin
fromyargs/helpers
parse
instead ofargv
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