Package net.shibboleth.ext.spring.cli
Interface CommandLineArguments
-
- All Known Implementing Classes:
AbstractCommandLineArguments
public interface CommandLineArgumentsCommand line arguments interface for command line tools.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetLoggingConfiguration()Gets the name of the requested logging configuration file from the command line.List<String>getOtherArgs()Get unparsed arguments.List<String>getPropertyFiles()Get list of property filenames to load.booleanisANSI()Indicates the presence of the--ansioption.booleanisHelp()Indicates the presence of the--helpoption.booleanisQuietOutput()Indicates the presence of the--quietoption.booleanisVerboseOutput()Indicates the presence of the--verboseoption.booleanisVersion()Indicates the presence of the--versionoption.voidprintHelp(PrintStream out)Print default command line help instructions.voidvalidate()Validate the parameter set.
-
-
-
Method Detail
-
isVerboseOutput
boolean isVerboseOutput()
Indicates the presence of the--verboseoption.- Returns:
trueif the user requested verbose logging.
-
isQuietOutput
boolean isQuietOutput()
Indicates the presence of the--quietoption.- Returns:
trueif the user requested quiet logging.
-
getLoggingConfiguration
@Nullable String getLoggingConfiguration()
Gets the name of the requested logging configuration file from the command line.- Returns:
- the logging configuration file name, or
null.
-
isHelp
boolean isHelp()
Indicates the presence of the--helpoption.- Returns:
trueif the user requested help.
-
isVersion
boolean isVersion()
Indicates the presence of the--versionoption.- Returns:
trueif the user requested the version be printed
-
isANSI
boolean isANSI()
Indicates the presence of the--ansioption.- Returns:
trueif the user requested the ANSI code option
-
getPropertyFiles
@Nonnull @Unmodifiable @NotLive List<String> getPropertyFiles()
Get list of property filenames to load.- Returns:
- property filenames
-
getOtherArgs
@Nonnull @Unmodifiable @NotLive List<String> getOtherArgs()
Get unparsed arguments.- Returns:
- unparsed arguments
-
validate
void validate() throws IllegalArgumentExceptionValidate the parameter set.- Throws:
IllegalArgumentException- if the parameters are invalid
-
printHelp
void printHelp(@Nonnull PrintStream out)Print default command line help instructions.- Parameters:
out- location where to print the output
-
-