package controller;
public class CalTech {
/**
* the main method that will launch the application
* @param args the list of arguments read from the command line
*/
public static void main(String[] args) {
// TODO incomplete method
Config theConfig;
//Run it without a calendar file and default settings
if(args.length == 0){
theConfig = new Config();
ViewC theViewC = new ViewC();
}else{
/* //dont need config file currently
//basic check for usage
if(args.length > 2){
System.err.println("Usage: CalTech CalendarFile [ConfigFile]");
System.exit(-1);
}
//check that config can be read, if config file specified
if(args.length == 2){
theConfig = model.IO.readConfig(args[1]);
if(theConfig == null){
System.err.println("Error: Could not read ConfigFile");
System.exit(-1);
}
}
//if no config file specified, create a default one
if(args.length <= 1){
theConfig = new Config();
}*/
ViewC theViewC = new ViewC( args[ 0 ] );
}
}
}