oblak/cloud-annotations/src/test/resources/TestCommandMethodMissingArgument.java
Alexander Söderberg 74fd40f403 feat(annotations): add @CommandMethod annotation processing (#366)
We now verify the following at compile time:
- That `@CommandMethod` annotated methods are non-static (error)
- That `@CommandMethod` annotated methods are public (warning)
- That the `@CommandMethod` syntax and specified `@Argument`s match
- That no optional argument precedes a required argument
2022-06-18 22:52:58 -07:00

11 lines
314 B
Java

import cloud.commandframework.annotations.Argument;
import cloud.commandframework.annotations.CommandMethod;
public class TestCommandMethodMissingArgument {
@CommandMethod("command <required> [optional]")
public void commandMethod(
@Argument("optional") final String optional
) {
}
}