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 newParseResultinstance for this builder's configuration.CommandLine.getParseResult()Expands any @-files in the specified command line arguments, then parses the arguments and returns aParseResultwith the options, positional parameters, and subcommands (if any) that were recognized and initialized during the parsing process.CommandLine.ParseResult.subcommand()Returns theParseResultfor the last subcommand of this command that was matched on the command line, ornullif no subcommand was matched.Methods in picocli that return types with arguments of type CommandLine.ParseResultModifier and TypeMethodDescriptionCommandLine.ParseResult.subcommands()Returns a list with theParseResultobjects 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 TypeMethodDescriptionintCommandLine.AbstractParseResultHandler.execute(CommandLine.ParseResult parseResult) Deprecated.intCommandLine.IExecutionStrategy.execute(CommandLine.ParseResult parseResult) "Executes" the user input and returns an exit code.intCommandLine.RunAll.execute(CommandLine.ParseResult parseResult) "Executes" the user input and returns an exit code.intCommandLine.RunFirst.execute(CommandLine.ParseResult parseResult) "Executes" the user input and returns an exit code.intCommandLine.RunLast.execute(CommandLine.ParseResult parseResult) "Executes" the user input and returns an exit code.static IntegerCommandLine.executeHelpRequest(CommandLine.ParseResult parseResult) Helper method that may be useful when processing theParseResultthat 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 RCommandLine.AbstractParseResultHandler.handle(CommandLine.ParseResult parseResult) Deprecated.Processes the specifiedParseResultand returns the result as a list of objects.CommandLine.RunAll.handle(CommandLine.ParseResult parseResult) Executes the top-level command and all subcommands asRunnableorCallable.CommandLine.RunFirst.handle(CommandLine.ParseResult parseResult) Executes the top-levelRunnableorCallablesubcommand.CommandLine.RunLast.handle(CommandLine.ParseResult parseResult) Executes the most specificRunnableorCallablesubcommand.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 aExecutionExceptionthat occurred while executing theRunnableorCallablecommand and optionally returns a list of results.intCommandLine.IExecutionExceptionHandler.handleExecutionException(Exception ex, CommandLine commandLine, CommandLine.ParseResult parseResult) Handles anExceptionthat occurred while executing theRunnableorCallablecommand 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 theParseResultobject resulting from successfully parsing the command line arguments and returns a return value.static booleanCommandLine.printHelpIfRequested(CommandLine.ParseResult parseResult) Delegates toCommandLine.executeHelpRequest(ParseResult).CommandLine.ParseResult.Builder.subcommand(CommandLine.ParseResult subcommand) Sets the specifiedParseResultfor a subcommand that was matched on the command line.