com.yahoo.vespa.security.tool.CliOptions Maven / Gradle / Ivy
// 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