Skip to content

@Command-annotated methods are not added if enclosing class does not have @Command annotation #1083

@remkop

Description

@remkop

@Command-annotated methods are not added if enclosing class does not have @Command annotation.

Example:

class App {
    @Option(names = "-a", scope = INHERIT) boolean a;
    @Command void sub() {}
}
assertNotNull(new CommandLine(new App()).getSubcommands().get("sub));

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions