Open morostr opened 6 years ago
See how HelpOption is used for an example of reusing options for multiple commands. Basically, just add you shared options to a class and inject it into the command. It might allow recursion but you’ll have to try it.
@morostr I think you are referring to my fork and its associated documentation. The documentation has been fleshed out considerably lately and I think the Inheritance and Composition page you refer to is now complete
I see that part of the documentation is still in TBD. I probably wont need a full fledged documentation, but some hints would be very helpfull.
I have a number of options that I want to use for several (but not all) commands, and the list of relevant options is different for each command.