- Timestamp:
- 08/28/12 13:33:23 (12 years ago)
- Location:
- trunk/java-utils/src/main/java/de/ugoe/cs/util/console/defaultcommands
- Files:
-
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/java-utils/src/main/java/de/ugoe/cs/util/console/defaultcommands/CMDexec.java
r639 r664 63 63 */ 64 64 @Override 65 public voidhelp() {66 Console.println("Usage: exec <filename>");65 public String help() { 66 return "exec <filename>"; 67 67 } 68 68 } -
trunk/java-utils/src/main/java/de/ugoe/cs/util/console/defaultcommands/CMDexit.java
r175 r664 4 4 5 5 import de.ugoe.cs.util.console.Command; 6 import de.ugoe.cs.util.console.Console;7 6 8 7 /** … … 22 21 */ 23 22 @Override 24 public voidhelp() {25 Console.println("Usage: exit");23 public String help() { 24 return "exit"; 26 25 } 27 26 -
trunk/java-utils/src/main/java/de/ugoe/cs/util/console/defaultcommands/CMDlistCommands.java
r663 r664 1 1 2 package de.ugoe.cs. quest.ui.commands;2 package de.ugoe.cs.util.console.defaultcommands; 3 3 4 4 import java.util.List; … … 25 25 @Override 26 26 public void run(List<Object> parameters) { 27 String[] commands = CommandExecuter.getInstance().getAvailableCommands();27 Command[] commands = CommandExecuter.getInstance().getAvailableCommands(); 28 28 29 for ( Stringcommand : commands) {30 Console.println(command );29 for (Command command : commands) { 30 Console.println(command.help()); 31 31 } 32 32 } … … 38 38 */ 39 39 @Override 40 public voidhelp() {41 Console.println("Usage: listCommands");40 public String help() { 41 return "listCommands"; 42 42 } 43 43
Note: See TracChangeset
for help on using the changeset viewer.