Dotty Documentation

0.18.0-bin-SNAPSHOT

object CommandLineParser
extends Object with Serializable

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

[-] Constructors

[-] Members

[+] class ParseError

An exception raised for an illegal command line

[+] def parseArgument ( 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

[+] def parseRemainingArguments ( 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

[+] def parseString ( str: String , n: Int ) ( implicit fs: FromString [ T ] ) : 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