public static void main ( String [ ] args ) throws IOException { CommandLineInterface cli = new CommandLineInterface ( ) ; cli . addOpt ( "-d" , "directory" , "./" ) ; cli . addOpt ( "-a" , "alpha" , "" + DEFAULT_ALPHA ) ; cli . addOpt ( "-s" , "seed" , null ) ; cli . parse ( args ) ; if ( cli . hasParam ( "--genprofile" ) ) { cli . generateProfile ( ) ; } else if ( cli . hasParam ( "--detectlang" ) ) { cli . detectLang ( ) ; } else if ( cli . hasParam ( "--batchtest" ) ) { cli . batchTest ( ) ; } }
Command Line Interface