Uses of Class
picocli.CommandLine.ParseResult
Packages that use CommandLine.ParseResult
Package
Description
Provides classes and interfaces for the main picocli command line parsing and
autocompletion
functionality.-
Uses of CommandLine.ParseResult in picocli
Methods in picocli that return CommandLine.ParseResultModifier and TypeMethodDescriptionCommandLine.ParseResult.Builder.build()
Creates and returns a newParseResult
instance for this builder's configuration.CommandLine.getParseResult()
Expands any @-files in the specified command line arguments, then parses the arguments and returns aParseResult
with the options, positional parameters, and subcommands (if any) that were recognized and initialized during the parsing process.CommandLine.ParseResult.subcommand()
Returns theParseResult
for the last subcommand of this command that was matched on the command line, ornull
if no subcommand was matched.Methods in picocli that return types with arguments of type CommandLine.ParseResultModifier and TypeMethodDescriptionCommandLine.ParseResult.subcommands()
Returns a list with theParseResult
objects for each subcommand of this command that was matched on the command line or an empty list if no subcommands were matched.Methods in picocli with parameters of type CommandLine.ParseResultModifier and TypeMethodDescriptionint
CommandLine.AbstractParseResultHandler.execute
(CommandLine.ParseResult parseResult) Deprecated.int
CommandLine.IExecutionStrategy.execute
(CommandLine.ParseResult parseResult) "Executes" the user input and returns an exit code.int
CommandLine.RunAll.execute
(CommandLine.ParseResult parseResult) "Executes" the user input and returns an exit code.int
CommandLine.RunFirst.execute
(CommandLine.ParseResult parseResult) "Executes" the user input and returns an exit code.int
CommandLine.RunLast.execute
(CommandLine.ParseResult parseResult) "Executes" the user input and returns an exit code.static Integer
CommandLine.executeHelpRequest
(CommandLine.ParseResult parseResult) Helper method that may be useful when processing theParseResult
that results from successfully parsing command line arguments.protected List<CommandLine.IExitCodeGenerator>
CommandLine.AbstractParseResultHandler.extractExitCodeGenerators
(CommandLine.ParseResult parseResult) Deprecated.protected List<CommandLine.IExitCodeGenerator>
CommandLine.RunAll.extractExitCodeGenerators
(CommandLine.ParseResult parseResult) protected List<CommandLine.IExitCodeGenerator>
CommandLine.RunFirst.extractExitCodeGenerators
(CommandLine.ParseResult parseResult) protected List<CommandLine.IExitCodeGenerator>
CommandLine.RunLast.extractExitCodeGenerators
(CommandLine.ParseResult parseResult) protected abstract R
CommandLine.AbstractParseResultHandler.handle
(CommandLine.ParseResult parseResult) Deprecated.Processes the specifiedParseResult
and returns the result as a list of objects.CommandLine.RunAll.handle
(CommandLine.ParseResult parseResult) Executes the top-level command and all subcommands asRunnable
orCallable
.CommandLine.RunFirst.handle
(CommandLine.ParseResult parseResult) Executes the top-levelRunnable
orCallable
subcommand.CommandLine.RunLast.handle
(CommandLine.ParseResult parseResult) Executes the most specificRunnable
orCallable
subcommand.CommandLine.DefaultExceptionHandler.handleExecutionException
(CommandLine.ExecutionException ex, CommandLine.ParseResult parseResult) Deprecated.This implementation always simply rethrows the specified exception.CommandLine.IExceptionHandler2.handleExecutionException
(CommandLine.ExecutionException ex, CommandLine.ParseResult parseResult) Deprecated.Handles aExecutionException
that occurred while executing theRunnable
orCallable
command and optionally returns a list of results.int
CommandLine.IExecutionExceptionHandler.handleExecutionException
(Exception ex, CommandLine commandLine, CommandLine.ParseResult parseResult) Handles anException
that occurred while executing theRunnable
orCallable
command and returns an exit code suitable for returning fromCommandLine.execute(String...)
.CommandLine.AbstractParseResultHandler.handleParseResult
(CommandLine.ParseResult parseResult) Deprecated.Prints help if requested, and otherwise callsCommandLine.AbstractParseResultHandler.handle(CommandLine.ParseResult)
.CommandLine.IParseResultHandler2.handleParseResult
(CommandLine.ParseResult parseResult) Deprecated.Processes theParseResult
object resulting from successfully parsing the command line arguments and returns a return value.static boolean
CommandLine.printHelpIfRequested
(CommandLine.ParseResult parseResult) Delegates toCommandLine.executeHelpRequest(ParseResult)
.CommandLine.ParseResult.Builder.subcommand
(CommandLine.ParseResult subcommand) Sets the specifiedParseResult
for a subcommand that was matched on the command line.