You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to add options to commands after they have been created?
In this app, I'm separating commands into their own files and dynamically requiring them. I'd like to go back through and add global options to each of the commands that exists. Is this possible?
I've tried simply appending the options array of each command with a new Option but the option doesn't show when I run help on the command.
The text was updated successfully, but these errors were encountered:
Is there a way to add options to commands after they have been created?
In this app, I'm separating commands into their own files and dynamically requiring them. I'd like to go back through and add global options to each of the commands that exists. Is this possible?
I've tried simply appending the
options
array of each command with anew Option
but the option doesn't show when I run help on the command.The text was updated successfully, but these errors were encountered: