O object

CommandLineParser

extends Object with Serializable

A utility object to support command line parsing for @main methods

Supertypes

Object, Serializable

Members

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] ) : T

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

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] ) : 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

def 

showError

( err: ParseError ) : Unit

Print error message explaining given ParserError

Print error message explaining given ParserError