CommandLineParser
A utility object to support command line parsing for @main methods
Attributes
- Graph
- Supertypes
- Self type
- CommandLineParser.type
Members list
Type members
Classlikes
Attributes
- Companion:
- trait
- Graph
- Supertypes
- Self type
- FromString.type
Attributes
- Companion:
- object
- Graph
- Supertypes
- Known subtypes
- object given_FromString_Boolean.typeobject given_FromString_Byte.typeobject given_FromString_Double.typeobject given_FromString_Float.typeobject given_FromString_Int.typeobject given_FromString_Long.typeobject given_FromString_Short.typeobject given_FromString_String.type
An exception raised for an illegal command line
An exception raised for an illegal command line
Attributes
- idx
The index of the argument that's faulty (starting from 0)
- msg
The error message
- Graph
- Supertypes
Value members
Concrete methods
Parse n
'th argument in args
(counting from 0) as a value of type T
Parse n
'th argument in args
(counting from 0) as a value of type T
Attributes
- Throws:
- ParseError
if argument does not exist or cannot be converted to type
T
.
Parse all arguments from n
'th one (counting from 0) as a list of values of type T
Parse all arguments from n
'th one (counting from 0) as a list of values of type T
Attributes
- Throws:
- ParseError
if some of the arguments cannot be converted to type
T
.
Parse command line argument s
, which has index n
, as a value of type T
Parse command line argument s
, which has index n
, as a value of type T
Attributes
- Throws:
- ParseError
if argument cannot be converted to type
T
.
Print error message explaining given ParserError
Print error message explaining given ParserError