public class Getopt extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Getopt.CommandLineOption
The command line options must be specified with a short and a long option
(note that you may specify null for the short option and the long option
to disable it).
|
static class |
Getopt.Entry |
| Constructor and Description |
|---|
Getopt()
Create a new instance of the option parser
|
| Modifier and Type | Method and Description |
|---|---|
Getopt |
addOption(Getopt.CommandLineOption option)
Add a new option to the list of options we accept
|
int |
getOptind()
Get the index of the first non-argument option.
|
List<Getopt.Entry> |
parse(String[] argv)
Parse the given hasArgument vector
|
public Getopt addOption(Getopt.CommandLineOption option)
option - the new optionpublic List<Getopt.Entry> parse(String[] argv)
argv - The arguments to parsepublic int getOptind()
Copyright © 2017. All rights reserved.