public class GnuGetoptFlavor extends Object implements CommandLineProcessingFlavor
| Constructor and Description |
|---|
GnuGetoptFlavor(GetOpt creator,
boolean processOptionsAfterNonOptions)
Construct a GNU getopt-flavor command line processor.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
processParams(List<String> params)
Process the command line
|
List<String> |
processParams(String... params)
Process the command line
|
public GnuGetoptFlavor(GetOpt creator, boolean processOptionsAfterNonOptions)
creator - GetOpt that created meprocessOptionsAfterNonOptions - if false, stop processsing options when the first
non-option argument is encountered (a.k.a.
POSIXLY_CORRECT). If true, only stop processing options
when "--" is encountered.public List<String> processParams(String... params)
processParams in interface CommandLineProcessingFlavorparams - The command line parametersCommandLineProcessingException - if any of the command line processing semantics are
violated. The message will contain a usage message in
traditional unix style.public List<String> processParams(List<String> params)
processParams in interface CommandLineProcessingFlavorparams - The command line parametersCommandLineProcessingException - if any of the command line processing semantics are
violatedCopyright © 2015. All rights reserved.