Search in sources :

Example 21 with Subparser

use of net.sourceforge.argparse4j.inf.Subparser in project helios by spotify.

the class CliParser method parse.

private Subparser parse(final Subparsers subparsers, final String name) {
    final Subparser subparser = subparsers.addParser(name, true);
    addGlobalArgs(subparser, cliConfig);
    return subparser;
}
Also used : Subparser(net.sourceforge.argparse4j.inf.Subparser)

Aggregations

Subparser (net.sourceforge.argparse4j.inf.Subparser)21 ArgumentParser (net.sourceforge.argparse4j.inf.ArgumentParser)10 Before (org.junit.Before)7 Namespace (net.sourceforge.argparse4j.inf.Namespace)5 ImmutableMap (com.google.common.collect.ImmutableMap)3 OptionMetadata (io.airlift.airline.model.OptionMetadata)3 List (java.util.List)3 Argument (net.sourceforge.argparse4j.inf.Argument)3 Configuration (io.dropwizard.Configuration)2 Bootstrap (io.dropwizard.setup.Bootstrap)2 ZoneOffset (java.time.ZoneOffset)2 ArrayList (java.util.ArrayList)2 HashMap (java.util.HashMap)2 Map (java.util.Map)2 UriBuilder (javax.ws.rs.core.UriBuilder)2 Subparsers (net.sourceforge.argparse4j.inf.Subparsers)2 StringFormatter.dateString (org.apache.kafka.trogdor.common.StringFormatter.dateString)2 StringFormatter.durationString (org.apache.kafka.trogdor.common.StringFormatter.durationString)2 UptimeResponse (org.apache.kafka.trogdor.rest.UptimeResponse)2 TaskSpec (org.apache.kafka.trogdor.task.TaskSpec)2