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 TypeMethodDescriptionvoidaddHelpKeyword(String keyword) Add a help keyword when -h is followed by non-flag arguments.voidaddQuestionWord(String word) Add a question word when -q is followed by non-flag arguments.voidintGet the error verbosity level (0-5).Get the help keywords if -h was followed by non-flag arguments.Get the message pack zip file path if -Ep was specified.getOptionParameter(String option) Access a parameter option from the command line.Get the question words if -q was followed by non-flag arguments.Get the test group filter if specified (-tg groupname).Get the test output format based on command line flags.booleanCheck if any help keywords were specified after -h.booleanCheck if any question words were specified after -q.booleanbooleanbooleanCheck if coverage output is enabled.booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisHelp()booleanbooleanbooleanbooleanbooleanCheck if -H flag (list all keywords) is present.booleanisMainParam(String param) booleanisModifierParam(String param) booleanbooleanbooleanisParameterUnacceptable(String param) booleanbooleanbooleanCheck if performance profiling is enabled.booleanCheck if -qd or -qdm flag (question detail mode) is present.booleanCheck if -qm or -qdm flag (question with migration context) is present.booleanCheck if any question mode flag (-q, -qd, -qm, -qdm) is present.booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanCheck if test list-only mode is enabled (-tL).booleanCheck if -Q flag (training data dump) is present.booleanbooleanbooleanboolean
-
Constructor Details
-
CommandLineOptions
public CommandLineOptions()
-
-
Method Details
-
getEk9AppParameters
-
getEk9ProgramParameters
-
getHelpKeywords
-
hasHelpKeywords
public boolean hasHelpKeywords()Check if any help keywords were specified after -h. -
addHelpKeyword
Add a help keyword when -h is followed by non-flag arguments. -
getQuestionWords
-
hasQuestionWords
public boolean hasQuestionWords()Check if any question words were specified after -q. -
addQuestionWord
Add a question word when -q is followed by non-flag arguments. -
isQuestionMode
public boolean isQuestionMode()Check if any question mode flag (-q, -qd, -qm, -qdm) is present. -
isQuestionDetailMode
public boolean isQuestionDetailMode()Check if -qd or -qdm flag (question detail mode) is present. Detail mode shows the full answer instead of a concise summary. -
isQuestionMigrationMode
public boolean isQuestionMigrationMode()Check if -qm or -qdm flag (question with migration context) is present. -
isTrainingDump
public boolean isTrainingDump()Check if -Q flag (training data dump) is present. -
isListKeywords
public boolean isListKeywords()Check if -H flag (list all keywords) is present. -
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() -
isDiAnalysis
public boolean isDiAnalysis() -
getErrorLevel
public int getErrorLevel()Get the error verbosity level (0-5). E0 = Minimal (default), E1 = Visual, E2 = Visual + Fuzzy suggestions, E3 = Rich explanations, E4 = Concise paradigm summary, E5 = Full AI bootstrap (E4 summary + complete forAI.json dump). Each level includes all features from lower levels (cumulative).- Returns:
- The error level (0, 1, 2, 3, 4, or 5), defaults to 0 if not specified
-
getMessagePackPath
Get the message pack zip file path if -Ep was specified.- Returns:
- The path to the message pack zip, or null 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
-
isProfilingEnabled
public boolean isProfilingEnabled()Check if performance profiling is enabled. Profiling is enabled by appending 'p' to any test format flag (e.g., -tp, -t2p, -t6p).- Returns:
- true if any profiling flag is present
-
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). Strips 'p' suffix from profiling flags to determine base format. 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()
-