Uses of Class
org.apache.logging.log4j.core.tools.picocli.CommandLine
-
Packages that use CommandLine Package Description org.apache.logging.log4j.core.tools.picocli -
-
Uses of CommandLine in org.apache.logging.log4j.core.tools.picocli
Fields in org.apache.logging.log4j.core.tools.picocli declared as CommandLine Modifier and Type Field Description private CommandLine
CommandLine.ExecutionException. commandLine
private CommandLine
CommandLine.ParameterException. commandLine
private CommandLine
CommandLine. parent
Fields in org.apache.logging.log4j.core.tools.picocli with type parameters of type CommandLine Modifier and Type Field Description private java.util.Map<java.lang.String,CommandLine>
CommandLine.Interpreter. commands
Methods in org.apache.logging.log4j.core.tools.picocli that return CommandLine Modifier and Type Method Description CommandLine
CommandLine. addSubcommand(java.lang.String name, java.lang.Object command)
Registers a subcommand with the specified name.CommandLine
CommandLine.ExecutionException. getCommandLine()
Returns theCommandLine
object for the (sub)command that could not be invoked.CommandLine
CommandLine.ParameterException. getCommandLine()
Returns theCommandLine
object for the (sub)command whose input could not be parsed.CommandLine
CommandLine. getParent()
Returns the command that this is a subcommand of, ornull
if this is a top-level command.<K> CommandLine
CommandLine. registerConverter(java.lang.Class<K> cls, CommandLine.ITypeConverter<K> converter)
Registers the specified type converter for the specified class.CommandLine
CommandLine. setCommandName(java.lang.String commandName)
Sets the command name (also called program name) displayed in the usage help synopsis to the specified value.CommandLine
CommandLine. setOverwrittenOptionsAllowed(boolean newValue)
Sets whether options for single-value fields can be specified multiple times on the command line without aCommandLine.OverwrittenOptionException
being thrown.CommandLine
CommandLine. setSeparator(java.lang.String separator)
Sets the String the parser uses to separate option names from option values to the specified value.CommandLine
CommandLine. setUnmatchedArgumentsAllowed(boolean newValue)
Sets whether the end user may specify unmatched arguments on the command line without aCommandLine.UnmatchedArgumentException
being thrown.private static CommandLine
CommandLine. toCommandLine(java.lang.Object obj)
Methods in org.apache.logging.log4j.core.tools.picocli that return types with arguments of type CommandLine Modifier and Type Method Description java.util.Map<java.lang.String,CommandLine>
CommandLine. getSubcommands()
Returns a map with the subcommands registered on this instance.(package private) java.util.List<CommandLine>
CommandLine.Interpreter. parse(java.lang.String... args)
Entry point into parsing command line arguments.java.util.List<CommandLine>
CommandLine. parse(java.lang.String... args)
Parses the specified command line arguments and returns a list ofCommandLine
objects representing the top-level command and any subcommands (if any) that were recognized and initialized during the parsing process.Methods in org.apache.logging.log4j.core.tools.picocli with parameters of type CommandLine Modifier and Type Method Description private static CommandLine.MissingParameterException
CommandLine.MissingParameterException. create(CommandLine cmd, java.util.Collection<java.lang.reflect.Field> missing, java.lang.String separator)
private static CommandLine.ParameterException
CommandLine.ParameterException. create(CommandLine cmd, java.lang.Exception ex, java.lang.String arg, int i, java.lang.String[] args)
private static java.lang.Object
CommandLine. execute(CommandLine parsed)
Method parameters in org.apache.logging.log4j.core.tools.picocli with type arguments of type CommandLine Modifier and Type Method Description CommandLine.Help
CommandLine.Help. addAllSubcommands(java.util.Map<java.lang.String,CommandLine> commands)
Registers all specified subcommands with this Help.java.util.List<java.lang.Object>
CommandLine.IParseResultHandler. handleParseResult(java.util.List<CommandLine> parsedCommands, java.io.PrintStream out, CommandLine.Help.Ansi ansi)
Processes a List ofCommandLine
objects resulting from successfully parsing the command line arguments and optionally returns a list of results.java.util.List<java.lang.Object>
CommandLine.RunAll. handleParseResult(java.util.List<CommandLine> parsedCommands, java.io.PrintStream out, CommandLine.Help.Ansi ansi)
Prints help if requested, and otherwise executes the top-level command and all subcommands asRunnable
orCallable
.java.util.List<java.lang.Object>
CommandLine.RunFirst. handleParseResult(java.util.List<CommandLine> parsedCommands, java.io.PrintStream out, CommandLine.Help.Ansi ansi)
Prints help if requested, and otherwise executes the top-levelRunnable
orCallable
command.java.util.List<java.lang.Object>
CommandLine.RunLast. handleParseResult(java.util.List<CommandLine> parsedCommands, java.io.PrintStream out, CommandLine.Help.Ansi ansi)
Prints help if requested, and otherwise executes the most specificRunnable
orCallable
subcommand.private void
CommandLine.Interpreter. parse(java.util.List<CommandLine> parsedCommands, java.util.Stack<java.lang.String> argumentStack, java.lang.String[] originalArgs)
static boolean
CommandLine. printHelpIfRequested(java.util.List<CommandLine> parsedCommands, java.io.PrintStream out, CommandLine.Help.Ansi ansi)
Helper method that may be useful when processing the list ofCommandLine
objects that result from successfully parsing command line arguments.private void
CommandLine.Interpreter. processArguments(java.util.List<CommandLine> parsedCommands, java.util.Stack<java.lang.String> args, java.util.Collection<java.lang.reflect.Field> required, java.util.Set<java.lang.reflect.Field> initialized, java.lang.String[] originalArgs)
Constructors in org.apache.logging.log4j.core.tools.picocli with parameters of type CommandLine Constructor Description ExecutionException(CommandLine commandLine, java.lang.String msg)
ExecutionException(CommandLine commandLine, java.lang.String msg, java.lang.Exception ex)
MaxValuesforFieldExceededException(CommandLine commandLine, java.lang.String msg)
MissingParameterException(CommandLine commandLine, java.lang.String msg)
MissingTypeConverterException(CommandLine commandLine, java.lang.String msg)
OverwrittenOptionException(CommandLine commandLine, java.lang.String msg)
ParameterException(CommandLine commandLine, java.lang.String msg)
Constructs a new ParameterException with the specified CommandLine and error message.ParameterException(CommandLine commandLine, java.lang.String msg, java.lang.Exception ex)
Constructs a new ParameterException with the specified CommandLine and error message.UnmatchedArgumentException(CommandLine commandLine, java.lang.String msg)
UnmatchedArgumentException(CommandLine commandLine, java.util.List<java.lang.String> args)
UnmatchedArgumentException(CommandLine commandLine, java.util.Stack<java.lang.String> args)
-