handleGetopt

Reads command-line options and applies them over values previously read from the configuration file, as well as dictates some other behaviour.

The priority of options then becomes getopt over config file over hardcoded defaults.

@safe @system
handleGetopt

Parameters

instance Kameloso

The current Kameloso instance.

Return Value

Type: auto

Next.continue_ or Next.returnSuccess depending on whether the arguments chosen mean the program should proceed or not.

Throws

GetOptException if an unknown flag is passed.

Examples

Kameloso instance;
Next next = handleGetopt(instance);

if (next == Next.returnSuccess) return 0;
// ...