private static FileBundle parseArgs(String[] args) {
        FileBundle fileBundle = new FileBundle();

        if (args.length == 0) {
            usage();
            System.exit(-2);
        }

        for (String string : args) {
            File file;
            file = checkParam(string, "--outline=");
            if (file != null) {
                fileBundle.setInFile(file);
            }
            file = checkParam(string, "--drill=");
            if (file != null) {
                fileBundle.setDrillFile(file);
            }

            file = checkParam(string, "--config=");
            if (file != null) {
                fileBundle.setConfigFile(file);
            }

            file = checkParam(string, "--output=");
            if (file != null) {
                fileBundle.setOutFile(file);
            }

            file = checkParam(string, "--output-mill=");
            if (file != null) {
                fileBundle.setOutMillFile(file);
            }

            file = checkParam(string, "--output-drill=");
            if (file != null) {
                fileBundle.setOutDrillFile(file);
            }
        }

        if (!fileBundle.isValid()) {
            System.err.println("Required parameter is missing");
            System.exit(-1);
        }

        return fileBundle;
    }