public class ParsedCommandLine extends Object
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getExtraArguments() |
boolean |
hasAnyOption(Collection<String> logLevelOptions)
See also
hasOption(java.lang.String). |
boolean |
hasOption(String option)
Returns true if the given option is present in this command-line.
|
ParsedCommandLineOption |
option(String option)
Returns the value of the given option.
|
String |
toString() |
public boolean hasOption(String option)
option - The option, without the '-' or '--' prefix.public boolean hasAnyOption(Collection<String> logLevelOptions)
hasOption(java.lang.String).logLevelOptions - the options to checkpublic ParsedCommandLineOption option(String option)
option - The option, without the '-' or '--' prefix.Copyright © 2013–2022 The Apache Software Foundation. All rights reserved.