public class OptionsParser
extends java.lang.Object
| Constructor and Description |
|---|
OptionsParser(java.lang.String[] _args)
Constructor - just pass in the args from the command line.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPassword() |
java.lang.String[] |
getRemainingArgs()
This returns an array of unused args - these are the non-option
args from the command line.
|
java.lang.String |
getRemainingFlags()
This just returns a string with the unprocessed flags - mainly
for error reporting - so you can report the unknown flags.
|
java.lang.String |
getUser() |
int |
isFlagSet(char optChar)
Returns an int specifying the number of times that the flag was
specified on the command line.
|
java.lang.String |
isValueSet(char optChar)
Returns a string (or null) specifying the value for the passed
option.
|
public OptionsParser(java.lang.String[] _args)
throws java.net.MalformedURLException
java.net.MalformedURLExceptionpublic java.lang.String getPassword()
public java.lang.String[] getRemainingArgs()
public java.lang.String getRemainingFlags()
public java.lang.String getUser()
public int isFlagSet(char optChar)
public java.lang.String isValueSet(char optChar)
Copyright © 2004-2018 The Apache Software Foundation. All Rights Reserved.