File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88[ annotation processor] ( https://openjdk.java.net/groups/compiler/processing-code.html )
99which does not use runtime reflection, but generates a custom parser at compile time instead.
1010
11- ### Quick rundown
11+ ### Quick start
1212
1313Choose any name for the java interface which will describe your command line API.
1414Add the ` @Command ` anntation to your command interface, to make the annotation processor aware of it.
@@ -23,9 +23,9 @@ The return types `boolean`, `List<?>` and `Optional<?>` (including `OptionalInt`
2323They are used to declare flags, repeable and optional options and parameters, respectively.
2424
2525> [ !TIP]
26- > If a method is annotated with ` @VarargsParameter ` , it must return a list.
27- > There cannot be more than one such method.
28- > If no attributes are specified, the ` @VarargsParameter ` annotation can be omitted .
26+ > If an abstract method is annotated with ` @VarargsParameter ` , it must return a list.
27+ > There must not be more than one such method.
28+ > The varargs annotation can also be omitted, unless you want to override attributes .
2929
3030Here's an example:
3131
You can’t perform that action at this time.
0 commit comments