Class ParsedCommandLine

java.lang.Object
org.apache.maven.wrapper.cli.ParsedCommandLine

public class ParsedCommandLine extends Object
Parsed command line.
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hasOption

      public boolean hasOption(String option)
      Returns true if the given option is present in this command-line.
      Parameters:
      option - The option, without the '-' or '--' prefix.
      Returns:
      true if the option is present.
    • hasAnyOption

      public boolean hasAnyOption(Collection<String> logLevelOptions)
      Parameters:
      logLevelOptions - the options to check
      Returns:
      true if any of the passed options is present
    • option

      public ParsedCommandLineOption option(String option)
      Returns the value of the given option.
      Parameters:
      option - The option, without the '-' or '--' prefix.
      Returns:
      The option. never returns null.
    • getExtraArguments

      public List<String> getExtraArguments()