Ignore:
Timestamp:
08/28/12 13:33:23 (12 years ago)
Author:
sherbold
Message:
  • modified Command.help(): the help now returns a string with its usage instead of writing directly to the console
  • modified listCommands: now writes the help string of each command instead of just the name; this way, the parameters are displayed directly
  • moved listCommands from quest-ui-core to java-utils
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDdeleteObject.java

    r434 r664  
    77import de.ugoe.cs.quest.ui.GlobalDataContainer; 
    88import de.ugoe.cs.util.console.Command; 
    9 import de.ugoe.cs.util.console.Console; 
    109 
    1110/** 
     
    2524         */ 
    2625        @Override 
    27         public void help() { 
    28                 Console.println("Usage: deleteObject <objectname>"); 
     26        public String help() { 
     27                return "deleteObject <objectname>"; 
    2928        } 
    3029 
Note: See TracChangeset for help on using the changeset viewer.