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
Location:
trunk/quest-plugin-guitar/src/main/java/de/ugoe/cs/quest/plugin/guitar/commands
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/quest-plugin-guitar/src/main/java/de/ugoe/cs/quest/plugin/guitar/commands/CMDefgTestCasesToSequences.java

    r639 r664  
    7878         */ 
    7979        @Override 
    80         public void help() { 
    81                 Console.println("Usage: efgTestCasesToSequences <folder> <sequencesName> {<efgFileName>}"); 
     80        public String help() { 
     81                return "efgTestCasesToSequences <folder> <sequencesName> {<efgFileName>}"; 
    8282        } 
    8383 
  • trunk/quest-plugin-guitar/src/main/java/de/ugoe/cs/quest/plugin/guitar/commands/CMDefgToDFA.java

    r434 r664  
    88import de.ugoe.cs.quest.usageprofiles.DeterministicFiniteAutomaton; 
    99import de.ugoe.cs.util.console.Command; 
    10 import de.ugoe.cs.util.console.Console; 
    1110 
    1211/** 
     
    4948         */ 
    5049        @Override 
    51         public void help() { 
    52                 Console.println("Usage: efgToDFA <filename> <modelname>"); 
     50        public String help() { 
     51                return "efgToDFA <filename> <modelname>"; 
    5352        } 
    5453 
  • trunk/quest-plugin-guitar/src/main/java/de/ugoe/cs/quest/plugin/guitar/commands/CMDefgToMM.java

    r434 r664  
    88import de.ugoe.cs.quest.usageprofiles.FirstOrderMarkovModel; 
    99import de.ugoe.cs.util.console.Command; 
    10 import de.ugoe.cs.util.console.Console; 
    1110 
    1211/** 
     
    4948         */ 
    5049        @Override 
    51         public void help() { 
    52                 Console.println("Usage: efgToMM <filename> <modelname>"); 
     50        public String help() { 
     51                return "efgToMM <filename> <modelname>"; 
    5352        } 
    5453 
Note: See TracChangeset for help on using the changeset viewer.