Skip to content

Help should group commands with aliases #458

Closed
@kidomine

Description

@kidomine

I noticed that in 2.1.0-RC1, shell methods with multiple keys are presented differently when help is invoked.
For example:

@ShellMethod(key={"key1", "key2"}, value = "Command that does something")
public String doSomething()
{
    // do something
}

Below is the comparison of output when typing help:

2.1.0-M5 (and earlier) 2.1.0-RC1
Sample Commands
    key1, key2: Command that does something
            
Sample Commands
    key1: Command that does something
    key2: Command that does something
            

In 2.1.0-RC1, the command description is repeated for each key. This makes the help output look cluttered. This can quickly get confusing if the developer intentionally had commands that have similar descriptions.

Is this new behavior intentional?
Is it possible to bring back the behavior similar to that of 2.1.0-M5 and earlier?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions