public class AmbiguousOptionException extends UnrecognizedOptionException
| Constructor | Description |
|---|---|
AmbiguousOptionException(String option,
Collection<String> matchingOptions) |
Constructs a new AmbiguousOptionException.
|
| Modifier and Type | Method | Description |
|---|---|---|
Collection<String> |
getMatchingOptions() |
Gets the options matching the partial name.
|
getOptionwrapaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic AmbiguousOptionException(String option, Collection<String> matchingOptions)
option - the partial option name.matchingOptions - the options matching the name.public Collection<String> getMatchingOptions()
Copyright © 2002-2025 The Apache Software Foundation. All rights reserved.Apache Commons CLI | Issue management | Source repository