-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
Description
I currently have a lot of options shared between different commands and instead of redefining the same options on each command I instead have resorted to using a commonOptions object with the options that I use frequently. This works good for me but at the moment I am forced to do:
new Command("add").addOption(commonOptions.cwd).addOption(commonOptions.all)It would be a lot more ergonomic if I could do something like:
new Command("add").addOption(commonOptions.cwd, commonOptions.all)I currently have this pnpm patched to just add an addOptions method but it may be better to just add a spread array onto addOption to allow this without introducing new apis.
Let me know what you think and I can open up a PR!