Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
Sorting help by command name (it was kind of random before) (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
tlisonbee authored Jul 10, 2017
1 parent 1265863 commit 3a741d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/nike/cerberus/cli/CerberusHelp.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private void printCustomUsage() {

private void printCommands() {
System.out.println("Commands, use cerberus [-h, --help] [command name] for more info:");
commander.getCommands().keySet().forEach(command -> {
commander.getCommands().keySet().stream().sorted().forEach(command -> {
String msg = String.format(" %s, %s",
Chalk.on(command).green().bold().toString(),
commander.getCommandDescription(command));
Expand Down

0 comments on commit 3a741d5

Please sign in to comment.