public static class CommandLine.UnmatchedArgumentException extends CommandLine.ParameterException
CommandLine.Option
or CommandLine.Parameters
.Constructor and Description |
---|
UnmatchedArgumentException(CommandLine commandLine,
java.util.List<java.lang.String> args) |
UnmatchedArgumentException(CommandLine commandLine,
java.util.Stack<java.lang.String> args) |
UnmatchedArgumentException(CommandLine commandLine,
java.lang.String msg) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getSuggestions()
Returns suggested solutions if such solutions exist, otherwise returns an empty list.
|
java.util.List<java.lang.String> |
getUnmatched()
Returns the unmatched command line arguments.
|
boolean |
isUnknownOption()
Returns
true if the first unmatched command line arguments resembles an option, false otherwise. |
static boolean |
printSuggestions(CommandLine.ParameterException ex,
java.io.PrintStream out)
Returns
true and prints suggested solutions to the specified stream if such solutions exist, otherwise returns false . |
boolean |
printSuggestions(java.io.PrintStream out)
Returns
true and prints suggested solutions to the specified stream if such solutions exist, otherwise returns false . |
getArgSpec, getCommandLine, getValue
public UnmatchedArgumentException(CommandLine commandLine, java.lang.String msg)
public UnmatchedArgumentException(CommandLine commandLine, java.util.Stack<java.lang.String> args)
public UnmatchedArgumentException(CommandLine commandLine, java.util.List<java.lang.String> args)
public static boolean printSuggestions(CommandLine.ParameterException ex, java.io.PrintStream out)
true
and prints suggested solutions to the specified stream if such solutions exist, otherwise returns false
.public java.util.List<java.lang.String> getUnmatched()
public boolean isUnknownOption()
true
if the first unmatched command line arguments resembles an option, false
otherwise.public boolean printSuggestions(java.io.PrintStream out)
true
and prints suggested solutions to the specified stream if such solutions exist, otherwise returns false
.public java.util.List<java.lang.String> getSuggestions()