Java org.apache.commons.cli CommandLine fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.cli CommandLine fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.cli CommandLine.

The text is from its open source code.

Subclass

org.apache.commons.cli.CommandLine has subclasses.
Click this link to see all its subclasses.

Method

booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
ListgetArgList()
Retrieve any left-over non-recognized options and arguments
String[]getArgs()
Retrieve any left-over non-recognized options and arguments
ObjectgetOptionObject(String opt)
Return the Object type of this Option.
ObjectgetOptionObject(char opt)
Return the Object type of this Option.
PropertiesgetOptionProperties(String opt)
Retrieve the map of values associated to the option.
Option[]getOptions()
Returns an array of the processed Option s.
StringgetOptionValue(String opt)
Retrieve the argument, if any, of this option.
StringgetOptionValue(char opt)
Retrieve the argument, if any, of this option.
StringgetOptionValue(String opt, String defaultValue)
Retrieve the argument, if any, of an option.
StringgetOptionValue(char opt, String defaultValue)
Retrieve the argument, if any, of an option.
String[]getOptionValues(String opt)
Retrieves the array of values, if any, of an option.
String[]getOptionValues(char opt)
Retrieves the array of values, if any, of an option.
ObjectgetParsedOptionValue(String opt)
Return a version of this Option converted to a particular type.
booleanhasOption(String opt)
Query to see if an option has been set.
booleanhasOption(char opt)
Query to see if an option has been set.
Iteratoriterator()
Returns an iterator over the Option members of CommandLine.
StringtoString()
Returns a string representation of the object.