Package picocli
Annotation Type CommandLine.Spec
-
@Retention(RUNTIME) @Target({FIELD,METHOD}) public static @interface CommandLine.Spec
Fields annotated with@Specwill be initialized with theCommandSpecfor the command the field is part of. Example usage:class InjectSpecExample implements Runnable { @Spec CommandSpec commandSpec; //... public void run() { // do something with the injected objects } }- Since:
- 3.2