doubleDashArguments

fun doubleDashArguments(flags: List<Char>, longFlags: List<String>, parameters: List<String>, args: Array<out String>): Arguments

Similar to posixArguments, but uses two dashes for long names. Single dashes are only used for flags.

Values are always separated by a space after the long name. e.g. --out result.txt

This is my favourite convention, because it is less messy than the Posix convention, and doesn't have the problem with filename completion caused by the GNU convention.

Parameters

flags

A list of single-character flags

longFlags

A list of multi-character flags

parameters

A list of parameter names

args

The arguments to be parsed (the values passed to the program's main method)

Throws