public static void main(String[] args) throws ParserConfigurationException, SAXException, XMLStreamException {
        CommandLineParser clParser = new BasicParser();
        Options options = new Options();

        Option optFile = new Option(OPT_FILE, "file", true, "path to keepass xml file");
        optFile.setArgName("path");

        Option optHelp = new Option("h", "help", false, "print this message");
        options.addOption(optFile);
        options.addOption(optHelp);

        try {
            CommandLine cl = clParser.parse(options, args);
            if (cl.hasOption("h")) {
                printUsage(options);
            } else {
                String path = cl.getOptionValue(OPT_FILE);
                readData(path);
            }
        } catch (ParseException e) {
            System.err.println("Unexpected error: " + e.getMessage());
            printUsage(options);
        }

    }