tokenize

fun tokenize(commandLine: String, filename: String = "", localization: Localization = defaultLocalization): List<String>

Split a command line into a list of argv tokens.

Example

tokenize("--text 'hello world'") == listOf("--text", "hello world")

Parameters

commandLine

The command line to split

filename

The name of the file being parsed. This is used in error messages.

localization

The localization to use for error messages