Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage help shows duplicate aliases if registered with same alias multiple times #444

Closed
remkop opened this issue Aug 15, 2018 · 0 comments
Closed

Comments

@remkop
Copy link
Owner

remkop commented Aug 15, 2018

Example:

TopLevelCommand top = new TopLevelCommand();
SubCommandWithAlias sub = new SubCommandWithAlias();
CommandLine cmd = new CommandLine(top).addSubcommand("task", sub, "t", "t");
cmd.usage(System.out);

Prints:

Usage: cb [COMMAND]
Commands:
  task, t, t, t  subcommand with alias

But expected the duplicate aliases to be filtered (deduplicated):

Usage: cb [COMMAND]
Commands:
  task, t  subcommand with alias
@remkop remkop added this to the 3.6 milestone Aug 15, 2018
remkop added a commit that referenced this issue Aug 15, 2018
@remkop remkop closed this as completed Aug 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant