Command line Arguments - npryce/konfig GitHub Wiki

The parseArgs function parses configuration properties from command-line options.

It takes the array of command-line arguments, a varargs list of CommandLineOption values that map property keys to option flags used on the command-line, and optional parameters to generate useful help text. It returns a pair of a parsed Configuration and a list of the arguments that are not part of a command-line option.