airlift / airline

Java annotation-based framework for parsing Git like command line structures
Apache License 2.0
846 stars 141 forks source link

Information about Inheritance and Composition #61

Open morostr opened 6 years ago

morostr commented 6 years ago

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.

electrum commented 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.

rvesse commented 5 years ago

@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