AirlineModule Annotation

This feature requires a minimum version of 2.9.0

@AirlineModule

The @AirlineModule annotation is applied to fields to indicate that their value types should also be inspected to discover further Airline metadata e.g. @Option and @Arguments annotated fields that are used to define a command.

This is used to enable Airline’s Composition mechanism that allows common definitions of options and arguments to be shared across multiple command classes without using inheritance.

For a practical example of this annotation in use see the HelpOption that is used to provide a -h/--help option to other commands.


Improving this Documentation

This documentation is itself open source and lives in GitHub under the docs/ directory.

I am not a professional technical writer and as the developer of this software I can often make assumptions of knowledge that you as a user reading this may not have. Improvements to the documentation are always welcome, if you have suggestions for the documentation please submit pull requests to the main branch.