CommandLineParser
object CommandLineParser
Split a line of text using shell conventions.
Type members
Classlikes
Value members
Concrete methods
Expands all arguments starting with @ to the contents of the file named like each argument.
Expands all arguments starting with @ to the contents of the file named like each argument.
Split the line into tokens separated by whitespace.
Split the line into tokens separated by whitespace.
Single or double quotes can be embedded to preserve internal whitespace:
""" echo "hello, world!" """
=> "echo" :: "hello, world!" :: Nil
""" echo hello,' 'world! """
=> "echo" :: "hello, world!" :: Nil
""" echo \"hello, world!\" """
=> "echo" :: ""hello," :: "world!"" :: Nil
The embedded quotes are stripped. Escaping backslash is not stripped.
Invoke errorFn
with a descriptive message if an end quote is missing.