Class CommandLineOptions
java.lang.Object
org.ek9lang.cli.CommandLineOptions
Holds the sets of command line options that have been configured for use.
Provides helper methods to make the notional value of the options each to handle.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintGet the error verbosity level (0-3).getOptionParameter(String option) Access a parameter option from the command line.Get the test group filter if specified (-tg groupname).Get the test output format based on command line flags.booleanbooleanbooleanCheck if coverage output is enabled.booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisHelp()booleanbooleanbooleanbooleanbooleanisMainParam(String param) booleanisModifierParam(String param) booleanbooleanbooleanisParameterUnacceptable(String param) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanCheck if test list-only mode is enabled (-tL).booleanbooleanbooleanboolean
-
Constructor Details
-
CommandLineOptions
public CommandLineOptions()
-
-
Method Details
-
getEk9AppParameters
-
getEk9ProgramParameters
-
isModifierParam
-
isMainParam
-
isParameterUnacceptable
-
appendRunOptionIfNecessary
public void appendRunOptionIfNecessary() -
isDebuggingInstrumentation
public boolean isDebuggingInstrumentation() -
isDevBuild
public boolean isDevBuild() -
isJustBuildTypeOption
public boolean isJustBuildTypeOption() -
isReleaseVectorOption
public boolean isReleaseVectorOption() -
isDeveloperManagementOption
public boolean isDeveloperManagementOption() -
isVerbose
public boolean isVerbose() -
isDebugVerbose
public boolean isDebugVerbose() -
getErrorLevel
public int getErrorLevel()Get the error verbosity level (0-3). E0 = Minimal (default), E1 = Visual, E2 = Visual + Fuzzy suggestions, E3 = Visual + Fuzzy + Verbose. Each level includes all features from lower levels (cumulative).- Returns:
- The error level (0, 1, 2, or 3), defaults to 0 if not specified
-
isGenerateSigningKeys
public boolean isGenerateSigningKeys() -
isUpdateUpgrade
public boolean isUpdateUpgrade() -
isCleanAll
public boolean isCleanAll() -
isResolveDependencies
public boolean isResolveDependencies() -
isIncrementalCompile
public boolean isIncrementalCompile() -
isFullCompile
public boolean isFullCompile() -
isCheckCompileOnly
public boolean isCheckCompileOnly() -
isPhasedCompileOnly
public boolean isPhasedCompileOnly() -
isInstall
public boolean isInstall() -
isPackaging
public boolean isPackaging() -
isDeployment
public boolean isDeployment() -
isPrintReleaseVector
public boolean isPrintReleaseVector() -
isIncrementReleaseVector
public boolean isIncrementReleaseVector() -
isSetReleaseVector
public boolean isSetReleaseVector() -
isSetFeatureVector
public boolean isSetFeatureVector() -
isHelp
public boolean isHelp() -
isVersionOfEk9Option
public boolean isVersionOfEk9Option() -
isRunEk9AsLanguageServer
public boolean isRunEk9AsLanguageServer() -
isEk9LanguageServerHelpEnabled
public boolean isEk9LanguageServerHelpEnabled() -
isReplMode
public boolean isReplMode() -
isRunOption
public boolean isRunOption() -
isUnitTestExecution
public boolean isUnitTestExecution() -
isTestListOnly
public boolean isTestListOnly()Check if test list-only mode is enabled (-tL). In this mode, tests are discovered and listed but not executed.- Returns:
- true if -tL flag is present
-
getTestGroupFilter
Get the test group filter if specified (-tg groupname). When set, only tests in the specified group are included.- Returns:
- The group name to filter by, or null if no filter specified
-
getTestOutputFormat
Get the test output format based on command line flags. Prioritizes explicit format flags (-t0, -t1, -t2, -t3, -t4, -t5) over action flags (-t, -tL). Defaults to HUMAN if no specific format is specified.- Returns:
- The test output format
-
isCoverageOutputEnabled
public boolean isCoverageOutputEnabled()Check if coverage output is enabled. Coverage is enabled when: - Explicit -tC flag is present, OR - Using coverage-focused formats: -t4 (detailed), -t5 (verbose), or -t6 (HTML)- Returns:
- true if coverage output should be displayed
-
isRunDebugMode
public boolean isRunDebugMode() -
isRunNormalMode
public boolean isRunNormalMode() -
getOptionParameter
-
isOptimizationLevelSpecified
public boolean isOptimizationLevelSpecified()
-