Skip navigation links
A B C G H P R V 

A

afterExecution(CommandLine, int, Exception) - Method in class picocli.groovy.PicocliBaseScript2
This method is called after the script has been executed, and may do one of three things: Call System.exit with the specified exit code. Throw a GroovyRuntimeException with the specified exception. Return the result of the script execution.

B

beforeParseArgs(CommandLine) - Method in class picocli.groovy.PicocliBaseScript2
Customizes the specified CommandLine instance to set a custom IParameterExceptionHandler and a custom IExecutionExceptionHandler, subclasses can override to customize further.

C

call() - Method in class picocli.groovy.PicocliBaseScript2
The script body.
COMMAND_LINE - Static variable in class picocli.groovy.PicocliBaseScript
Deprecated.
Name of the property that holds the CommandLine instance for this script ("commandLine").
COMMAND_LINE - Static variable in class picocli.groovy.PicocliBaseScript2
Name of the property that holds the CommandLine instance for this script ("commandLine").
createCommandLine() - Method in class picocli.groovy.PicocliBaseScript
Deprecated.
Create and returns a new CommandLine instance.
createCommandLine() - Method in class picocli.groovy.PicocliBaseScript2
Create and returns a new CommandLine instance.

G

getOrCreateCommandLine() - Method in class picocli.groovy.PicocliBaseScript
Deprecated.
Return the CommandLine for this script.
getOrCreateCommandLine() - Method in class picocli.groovy.PicocliBaseScript2
Returns the CommandLine for this script.
getScriptArguments() - Method in class picocli.groovy.PicocliBaseScript
Deprecated.
Return the script arguments as an array of strings.
getScriptArguments() - Method in class picocli.groovy.PicocliBaseScript2
Returns the script arguments as an array of strings.

H

handleExecutionException(CommandLine, String[], Exception) - Method in class picocli.groovy.PicocliBaseScript
Deprecated.
If an Exception occurs during PicocliBaseScript.runRunnableSubcommand(List), or PicocliBaseScript.runScriptBody() then this gets called to report the problem.
handleParameterException(CommandLine.ParameterException, String[]) - Method in class picocli.groovy.PicocliBaseScript
Deprecated.
If a ParameterException occurs during PicocliBaseScript.parseScriptArguments(CommandLine, String[]) then this method gets called to report the problem.

P

parseScriptArguments(CommandLine, String[]) - Method in class picocli.groovy.PicocliBaseScript
Deprecated.
Returns the result of calling CommandLine.parse(String...) with the given arguments.
picocli.groovy - package picocli.groovy
Provides classes and annotations to give Groovy scripts convenient access to picocli functionality.
PicocliBaseScript - Class in picocli.groovy
Deprecated.
Use PicocliBaseScript2 instead.
PicocliBaseScript() - Constructor for class picocli.groovy.PicocliBaseScript
Deprecated.
 
PicocliBaseScript2 - Class in picocli.groovy
Base script class that provides picocli declarative (annotation-based) command line argument processing for Groovy scripts, updated for picocli version 4 and greater.
PicocliBaseScript2() - Constructor for class picocli.groovy.PicocliBaseScript2
 
PicocliScript - Annotation Type in picocli.groovy
Deprecated.
Use PicocliScript2 instead.
PicocliScript2 - Annotation Type in picocli.groovy
Annotation to give Groovy scripts convenient access to picocli functionality, updated for picocli version 4 and greater.
PicocliScriptASTTransformation - Class in picocli.groovy
Ensures that Groovy scripts annotated with PicocliScript are transformed into a class that extends PicocliBaseScript.
PicocliScriptASTTransformation() - Constructor for class picocli.groovy.PicocliScriptASTTransformation
 
printErrorMessage(String) - Method in class picocli.groovy.PicocliBaseScript
Deprecated.
Error messages that arise from command line processing call this.
printHelpMessage(CommandLine) - Method in class picocli.groovy.PicocliBaseScript
Deprecated.
If an @Option whose usageHelp attribute is annotated as true appears in the arguments.
printHelpMessage(CommandLine, PrintStream) - Method in class picocli.groovy.PicocliBaseScript
Deprecated.
If an @Option whose usageHelp attribute is annotated as true appears in the arguments.
printVersionHelpMessage(CommandLine) - Method in class picocli.groovy.PicocliBaseScript
Deprecated.
If an @Option whose versionHelp attribute is annotated as true appears in the arguments.

R

run() - Method in class picocli.groovy.PicocliBaseScript
Deprecated.
Parses the command line and initializes @Field variables annotated with @Option or @Parameters before executing the script body.
run() - Method in class picocli.groovy.PicocliBaseScript2
Parses the command line and initializes @Field variables annotated with @Option or @Parameters before executing the script body.
runRunnableSubcommand(List<CommandLine>) - Method in class picocli.groovy.PicocliBaseScript
Deprecated.
If the most specific subcommand (the last CommandLine object in the list) implements Runnable or Callable, then run it.
runScriptBody() - Method in class picocli.groovy.PicocliBaseScript
Deprecated.
The script body.

V

visit(ASTNode[], SourceUnit) - Method in class picocli.groovy.PicocliScriptASTTransformation
 
A B C G H P R V 
Skip navigation links