Annotation Type CatchUnknown


  • @Retention(RUNTIME)
    @Target({METHOD,ANNOTATION_TYPE})
    public @interface CatchUnknown
    Defines a method that should receive any unknown command for the related root command. For example, if a BaseCommand /foo has a method with this, and /foo someunknowncommand is used If a method is tagged with this annotation, it will catch unknown commands and let you react to them. Only one instance of this annotation can be used per root command.