class GlacierUploaderOptionParser extends OptionParser {

    public List<File> mergeNonOptionsFiles(List<File> optionsFiles, List<String> nonOptions) {
        final List<File> files = new ArrayList<>(optionsFiles);

        if (!nonOptions.isEmpty()) {
            // Adds non options to the list in order
            // to be able to use * in filenames
            for (String nonOption : nonOptions) {
                File file = new File(nonOption);
                if (file.exists() && file.isFile()) {
                    files.add(file);
                }
            }
        }
        return files;
    }

    public  GlacierUploaderOptionParser(final Configuration config);

}