edu.byu.ece.edif.util.jsap.commandgroups
Class ConfigFileCommandGroup

java.lang.Object
  extended by edu.byu.ece.edif.util.jsap.commandgroups.AbstractCommandGroup
      extended by edu.byu.ece.edif.util.jsap.commandgroups.ConfigFileCommandGroup
All Implemented Interfaces:
CommandGroup

public class ConfigFileCommandGroup
extends AbstractCommandGroup

Author:
Derrick Gibelyou

Field Summary
protected static java.lang.String _tool
           
static java.lang.String CONF_FILENAME
           
static char LIST_DELIMITER
           
protected  com.martiansoftware.jsap.FlaggedOption use_config
           
static java.lang.String USE_CONFIG
           
protected  com.martiansoftware.jsap.FlaggedOption write_config
           
static java.lang.String WRITE_CONFIG
           
 
Fields inherited from class edu.byu.ece.edif.util.jsap.commandgroups.AbstractCommandGroup
_options
 
Constructor Summary
ConfigFileCommandGroup(java.lang.String tool)
           
 
Method Summary
static int createConfigFile(com.martiansoftware.jsap.JSAPResult results, EdifCommandParser parser)
          Takes all the user set parameters and writes them to a config file, which can be used later as a default set of parameters.
 
Methods inherited from class edu.byu.ece.edif.util.jsap.commandgroups.AbstractCommandGroup
addCommand, getCommands
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

write_config

protected com.martiansoftware.jsap.FlaggedOption write_config

use_config

protected com.martiansoftware.jsap.FlaggedOption use_config

_tool

protected static java.lang.String _tool

CONF_FILENAME

public static final java.lang.String CONF_FILENAME
See Also:
Constant Field Values

LIST_DELIMITER

public static final char LIST_DELIMITER
See Also:
Constant Field Values

USE_CONFIG

public static final java.lang.String USE_CONFIG
See Also:
Constant Field Values

WRITE_CONFIG

public static final java.lang.String WRITE_CONFIG
See Also:
Constant Field Values
Constructor Detail

ConfigFileCommandGroup

public ConfigFileCommandGroup(java.lang.String tool)
Method Detail

createConfigFile

public static int createConfigFile(com.martiansoftware.jsap.JSAPResult results,
                                   EdifCommandParser parser)
Takes all the user set parameters and writes them to a config file, which can be used later as a default set of parameters.

Parameters:
filename - name of the file to write the configuration to
results - the JSAPResults from parsing the command line
Returns:
0 on success