Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Actually demostrate the use of suggestions
If we use "-g" directly then the only suggestion available is nothing, so only use "-"
  • Loading branch information
FixedDev authored Sep 11, 2021
commit 37529f30a1ff05271a308203f3214fa5a90c1674
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static void main(String[] args) {
commandManager.execute(namespace, "test Fixed -g"); // Prints Goodbye Fixed
// due to missing arguments.

System.out.println(String.join(",", commandManager.getSuggestions(namespace, "test -g")));
System.out.println(String.join(",", commandManager.getSuggestions(namespace, "test -")));
}

private static CommandManager create() {
Expand Down