rvesse / airline

Java annotation-based framework for parsing Git like command line structures with deep extensibility
https://rvesse.github.io/airline/
Apache License 2.0
131 stars 20 forks source link

Allow extended help annotations on @Cli #59

Closed rvesse closed 6 years ago

rvesse commented 8 years ago

From the discussion on #57 it is clear that it would be useful if extended help annotations could be placed on a @Cli annotated class and automatically propagated to all commands placed into that CLI.

The basic design would be that when creating a CLI from an annotated class we would discover extended help annotations on that class and convert these to help sections. Then when adding commands into the CLI we will use those sections as a base for each commands extended help. As is already possible commands could still declare their own extended help annotations which would override the top-level declarations.

Ideally it should also be possible to do something similar when using the CliBuilder API