Information about Inheritance and Composition
morostr opened this issue · comments
Morostr commented
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.
David Phillips commented
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.
Rob Vesse commented
@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