private Optional<Path> fileValue(String option) throws CliArgumentsException {
        try {
            File certificateFile = (File) arguments.getParsedOptionValue(option);
            if (certificateFile == null) return Optional.empty();
            return Optional.of(certificateFile.toPath());
        } catch (ParseException e) {
            throw newInvalidValueException(option, e);
        }
    }
Parses command line arguments

@author bjorncs
vespa-feed-client-cli/src/main/java/ai/vespa/feed/client/impl/CliArguments.java