Class CommandLineOptions

java.lang.Object
org.ek9lang.cli.CommandLineOptions

public class CommandLineOptions extends Object
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 Details

    • CommandLineOptions

      public CommandLineOptions()
  • Method Details

    • getEk9AppParameters

      public List<String> getEk9AppParameters()
    • getEk9ProgramParameters

      public List<String> getEk9ProgramParameters()
    • isModifierParam

      public boolean isModifierParam(String param)
    • isMainParam

      public boolean isMainParam(String param)
    • isParameterUnacceptable

      public boolean isParameterUnacceptable(String param)
    • 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

      public String 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

      public TestOutputFormat 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

      public String getOptionParameter(String option)
      Access a parameter option from the command line. Returns the value following the specified option flag, or null if not found.
    • isOptimizationLevelSpecified

      public boolean isOptimizationLevelSpecified()