All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yahoo.vespa.security.tool.CliOptions Maven / Gradle / Ivy

There is a newer version: 8.409.18
Show newest version
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.security.tool;

import org.apache.commons.cli.HelpFormatter;
import org.apache.commons.cli.Option;
import org.apache.commons.cli.Options;

import java.io.PrintStream;
import java.io.PrintWriter;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author vekterli
 * @author bjorncs
 */
class CliOptions {

    private static final Option HELP_OPTION = Option.builder("h")
            .longOpt("help")
            .hasArg(false)
            .required(false)
            .desc("Show help")
            .build();

    static Options withHelpOption(List




© 2015 - 2024 Weber Informatics LLC | Privacy Policy