0

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 Answer 1

0

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.