Package net.shibboleth.shared.cli
Interface CommandLineArguments
- All Known Implementing Classes:
AbstractCommandLineArguments
public interface CommandLineArguments
Command line arguments interface for command line tools.
-
Method Summary
Modifier and TypeMethodDescriptionGets the name of the requested logging configuration file from the command line.Get unparsed arguments.Get list of property filenames to load.booleanisANSI()Indicates the presence of the--ansioption.booleanisHelp()Indicates the presence of the--helpoption.booleanIndicates the presence of the--quietoption.booleanIndicates the presence of the--verboseoption.booleanIndicates the presence of the--versionoption.voidprintHelp(PrintStream out) Print default command line help instructions.voidvalidate()Validate the parameter set.
-
Method Details
-
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
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
Get list of property filenames to load.- Returns:
- property filenames
-
getOtherArgs
Get unparsed arguments.- Returns:
- unparsed arguments
-
validate
Validate the parameter set.- Throws:
IllegalArgumentException- if the parameters are invalid
-
printHelp
Print default command line help instructions.- Parameters:
out- location where to print the output
-