Class Option

java.lang.Object
io.micronaut.core.cli.Option

public class Option extends Object
Represents a command line option.
Since:
2.0
Author:
Graeme Rocher
  • Constructor Details

    • Option

      public Option(String name, String description)
      Parameters:
      name - The name
      description - The description
  • Method Details

    • getName

      public String getName()
      Returns:
      The name of the option
    • getDescription

      public String getDescription()
      Returns:
      The description of the option
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object