public class CasCommandLineParser
extends java.lang.Object
CasCommandLineParser
.Constructor and Description |
---|
CasCommandLineParser() |
Modifier and Type | Method and Description |
---|---|
static void |
convertToSystemProperties(java.lang.String[] args)
To system.
|
static org.springframework.boot.Banner.Mode |
getBannerMode(java.lang.String[] args)
Gets banner mode.
|
org.apache.commons.cli.Options |
getOptions() |
boolean |
getOptionValue(org.apache.commons.cli.CommandLine line,
org.apache.commons.cli.Option opt,
boolean defaultValue)
Gets option value.
|
java.lang.String |
getOptionValue(org.apache.commons.cli.CommandLine line,
org.apache.commons.cli.Option opt,
java.lang.String defaultValue)
Gets option value.
|
java.util.regex.Pattern |
getProperty(org.apache.commons.cli.CommandLine line)
Gets property.
|
java.lang.String |
getPropertyValue(org.apache.commons.cli.CommandLine line)
Gets property.
|
java.lang.String |
getSubject(org.apache.commons.cli.CommandLine line)
Gets subject.
|
boolean |
hasOption(org.apache.commons.cli.CommandLine line,
org.apache.commons.cli.Option opt)
Has option boolean.
|
boolean |
isGeneratingJwt(org.apache.commons.cli.CommandLine line)
Is jwt gen.
|
boolean |
isGeneratingKey(org.apache.commons.cli.CommandLine line)
Is key gen.
|
boolean |
isHelp(org.apache.commons.cli.CommandLine line)
Is help boolean.
|
boolean |
isScanningUndocumentedProperties(org.apache.commons.cli.CommandLine line)
Is scanning undocumented properties boolean.
|
static boolean |
isShell(java.lang.String[] args)
Is shell boolean.
|
boolean |
isSkippingBanner(org.apache.commons.cli.CommandLine line)
Is skipping banner boolean.
|
static boolean |
isSkippingBanner(org.springframework.core.env.Environment env)
Is skipping banner boolean.
|
boolean |
isStrictMatch(org.apache.commons.cli.CommandLine line)
Is strict match boolean.
|
boolean |
isSummary(org.apache.commons.cli.CommandLine line)
Is summary boolean.
|
org.apache.commons.cli.CommandLine |
parse(java.lang.String[] args)
Parse command line.
|
void |
printHelp()
Print help information.
|
public org.apache.commons.cli.CommandLine parse(java.lang.String[] args)
args
- the argspublic void printHelp()
public java.util.regex.Pattern getProperty(org.apache.commons.cli.CommandLine line)
line
- the linepublic java.lang.String getSubject(org.apache.commons.cli.CommandLine line)
line
- the linepublic java.lang.String getPropertyValue(org.apache.commons.cli.CommandLine line)
line
- the linepublic boolean isHelp(org.apache.commons.cli.CommandLine line)
line
- the linepublic boolean isGeneratingKey(org.apache.commons.cli.CommandLine line)
line
- the linepublic boolean isGeneratingJwt(org.apache.commons.cli.CommandLine line)
line
- the linepublic boolean isScanningUndocumentedProperties(org.apache.commons.cli.CommandLine line)
line
- the linepublic boolean isSummary(org.apache.commons.cli.CommandLine line)
line
- the linepublic boolean isStrictMatch(org.apache.commons.cli.CommandLine line)
line
- the linepublic boolean isSkippingBanner(org.apache.commons.cli.CommandLine line)
line
- the linepublic static boolean isSkippingBanner(org.springframework.core.env.Environment env)
env
- the envpublic java.lang.String getOptionValue(org.apache.commons.cli.CommandLine line, org.apache.commons.cli.Option opt, java.lang.String defaultValue)
line
- the lineopt
- the optdefaultValue
- the default valuepublic boolean getOptionValue(org.apache.commons.cli.CommandLine line, org.apache.commons.cli.Option opt, boolean defaultValue)
line
- the lineopt
- the optdefaultValue
- the default valuepublic boolean hasOption(org.apache.commons.cli.CommandLine line, org.apache.commons.cli.Option opt)
line
- the lineopt
- the optpublic org.apache.commons.cli.Options getOptions()
public static org.springframework.boot.Banner.Mode getBannerMode(java.lang.String[] args)
args
- the argspublic static boolean isShell(java.lang.String[] args)
args
- the argspublic static void convertToSystemProperties(java.lang.String[] args)
args
- the args