CommandLineParser
extends Object with SerializableA utility object to support command line parsing for @main methods
Supertypes
Object, SerializableMembers
class
ParseError
An exception raised for an illegal command line
An exception raised for an illegal command line
def
parseArgument
[T] ( args: Array[String] , n: Int ) ( implicit fs: FromString[T] ) : TParse 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
def
parseRemainingArguments
[T] ( args: Array[String] , n: Int ) ( implicit fs: FromString[T] ) : List[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
def
parseString
[T] ( str: String , n: Int ) ( implicit fs: FromString[T] ) : TParse 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
def
showError
( err: ParseError ) : UnitPrint error message explaining given ParserError
Print error message explaining given ParserError