public static void main(String[] args) {
        if (args.length == 0) {
            
            LexiconTestUpdater lexpars = new LexiconTestUpdater();
            lexpars.setOutput(null);
                
            lexpars.parse("/home/xavi/extraction/test.xml");
        } else {
            

            CmdOptionTester optionTester = new CmdOptionTester();
            CmdOptions parser = new CmdOptions();

            Option oinput = parser.addStringOption('i', "input");
            Option ooutput = parser.addStringOption('o', "output");

            try {
                parser.parse(args);
            } catch (IllegalOptionValueException ex) {
                Logger.getLogger(AttestedGTSorter.class.getName()).log(Level.SEVERE, null, ex);
            } catch (UnknownOptionException ex) {
                Logger.getLogger(AttestedGTSorter.class.getName()).log(Level.SEVERE, null, ex);
            }

            String input = optionTester.testFile(parser, oinput, false, false, true);
            String output = optionTester.testFile(parser, oinput, false, false, false);
            
            Writer out = null;
            
            if(output!=null) try {
                out = new FileWriter(output);
            } catch (IOException ex) {
                out = null;
                Logger.getLogger(LexiconTestUpdater.class.getName()).log(Level.SEVERE, null, ex);
            }
            
            LexiconTestUpdater lexpars = new LexiconTestUpdater();
            lexpars.setOutput(out);
                
            lexpars.parse(input);
        }
    }