Class AmbiguousOptionException

All Implemented Interfaces:
Serializable

public class AmbiguousOptionException extends CLIException
Exception thrown when the command line is ambiguous meaning it cannot determine exactly which option has to be set.
Author:
Clement Escoffier invalid input: '<'[email protected]>
See Also:
  • Constructor Details

    • AmbiguousOptionException

      public AmbiguousOptionException(String token, List<Option> matchingOpts)
      Creates a new instance of AmbiguousOptionException.
      Parameters:
      token - the ambiguous token
      matchingOpts - the list of potential matches
  • Method Details

    • getOptions

      public List<Option> getOptions()
      Returns:
      the list of potential matches.
    • getToken

      public String getToken()
      Returns:
      the token triggering the ambiguity.