public static void main(String[] args) throws Exception {
        if (args.length == 0) {
            args = new String[2];
            args[0] = "-i";
            args[1] = "/home/xavi/extraction/new/test.xml";
        }
        CmdOptionTester optionTester = new CmdOptionTester();
        CmdOptions parser = new CmdOptions();

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

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

        String input = optionTester.testFile(parser, oinput, false, false, true);
        String output = null;

        Writer out = null;

        if (output != null) {
            try {
                out = new FileWriter(output);
            } catch (IOException ex) {
                out = null;
                Logger.getLogger(LexiconSAXUpdater.class.getName()).log(Level.SEVERE, null, ex);
            }
        }

        System.err.println(input + "...");
        //new java.util.Scanner(System.in).nextLine();
        CorpusFixer l = new CorpusFixer(input, XMLReaderFactory.createXMLReader());
        l.save(out);
        System.err.println("\t\t\t\t\t\tdone!");
    }