jargs.gnu
Class CmdLineParser.Option
java.lang.Object
jargs.gnu.CmdLineParser.Option
- CmdLineParser
public static abstract class CmdLineParser.Option
extends java.lang.Object
Representation of a command-line option
Option(String longForm, boolean wantsValue)
|
Option(char shortForm, String longForm, boolean wantsValue)
|
Object | getValue(String arg, Locale locale)
|
String | longForm()
|
protected Object | parseValue(String arg, Locale locale) - Override to extract and convert an option value passed on the
command-line
|
String | shortForm()
|
boolean | wantsValue() - Tells whether or not this option wants a value
|
Option
protected Option(String longForm,
boolean wantsValue)
Option
protected Option(char shortForm,
String longForm,
boolean wantsValue)
longForm
public String longForm()
shortForm
public String shortForm()
wantsValue
public boolean wantsValue()
Tells whether or not this option wants a value
Copyright © 2001-2003 Steve Purcell. Copyright © 2002 Vidar Holen. Copyright © 2002 Michal Ceresna. Copyright © 2005 Ewan Mellor. Released under the terms of the BSD licence.