Package | Description |
---|---|
org.apache.logging.log4j.core.tools.picocli |
Modifier and Type | Method and Description |
---|---|
CommandLine |
CommandLine.addSubcommand(String name,
Object command)
Registers a subcommand with the specified name.
|
CommandLine |
CommandLine.getParent()
Returns the command that this is a subcommand of, or
null if this is a top-level command. |
<K> CommandLine |
CommandLine.registerConverter(Class<K> cls,
CommandLine.ITypeConverter<K> converter)
Registers the specified type converter for the specified class.
|
CommandLine |
CommandLine.setOverwrittenOptionsAllowed(boolean newValue)
Sets whether options for single-value fields can be specified multiple times on the command line without a
CommandLine.OverwrittenOptionException being thrown. |
CommandLine |
CommandLine.setUnmatchedArgumentsAllowed(boolean newValue)
Sets whether the end user may specify unmatched arguments on the command line without a
CommandLine.UnmatchedArgumentException being thrown. |
Modifier and Type | Method and Description |
---|---|
Map<String,CommandLine> |
CommandLine.getSubcommands()
Returns a map with the subcommands registered on this instance.
|
List<CommandLine> |
CommandLine.parse(String... args)
Initializes the annotated object that this
CommandLine was constructed with as well as
possibly any registered commands, based on the specified command line arguments,
and returns a list of all commands and subcommands that were initialized by this method. |
Modifier and Type | Method and Description |
---|---|
CommandLine.Help |
CommandLine.Help.addAllSubcommands(Map<String,CommandLine> commands)
Registers all specified subcommands with this Help.
|
Copyright © 1999-2018 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.