Skip to content

Command alias not work on type level when sub command is empty #945

Closed
@timnick-snow

Description

@timnick-snow
@Command(command = "foo", alias = "f")
public class MyCommand {
    @Command(command = "", alias = "")
//    @Command
    public String emptySub() {
        return "empty sub";
    }

    @Command(command = "bar", alias = "b")
    public String bar() {
        return "foo bar";
    }
}
shell:>foo bar
foo bar
shell:>f b
foo bar
shell:>foo 
empty sub
shell:>f
No command found for 'f'
shell:>

I can't use the f command

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions