How to add same flag to multiple commands in Oclif framework?

293 Views Asked by At

I'm writing a CLI using Heroku's CLI framework oclif. It works great, but I have a flag that is applicable to only list type commands. How to add the same flag to multiple commands but not to all in oclif?

1

There are 1 best solutions below

0
On

May be you have already found the answer but here is mine. You can set the value of multiple to true. This allows the flags to be declared multiple times. By default the value of multiple is false. Here is the link

https://oclif.io/docs/flags