CommandLineParser (original) (raw)
scala.util.CommandLineParser
A utility object to support command line parsing for @main methods
Attributes
Source
Graph
Supertypes
Self type
Members list
An exception raised for an illegal command line
An exception raised for an illegal command line
Value parameters
idx
The index of the argument that's faulty (starting from 0)
msg
The error message
Attributes
Source
Supertypes
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
if argument does not exist or cannot be converted to type T
.
Source
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
if some of the arguments cannot be converted to type T
.
Source
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
if argument cannot be converted to type T
.
Source
Print error message explaining given ParserError
In this article