RefuseRootExt

Arguments extension that refuses to start if the program is run as root. Behavior can be overridden by specifying --asroot

Members

Functions

order
int order()

Order doesn't matter, so return anything less than default app 0

preValidateArgs
void preValidateArgs(IApplication app, Arguments args)
Undocumented in source. Be warned that the author may not have intended to support it.
processArgs
void processArgs(IApplication app, Arguments args)

Unused IArgumentsExtExtension methods.

setupArgs
void setupArgs(IApplication app, Arguments args)

Function executed when command line arguments are set up (before parsing).

validateArgs
cstring validateArgs(IApplication app, Arguments args)

Function executed after parsing the command line arguments.

Inherited Members

From IArgumentsExtExtension

setupArgs
void setupArgs(IApplication app, Arguments args)

Function executed when command line arguments are set up (before parsing).

preValidateArgs
void preValidateArgs(IApplication app, Arguments args)

Function executed after parsing of command line args (whether the basic parsing failed or succeeded) but before the call to validateArgs().

validateArgs
cstring validateArgs(IApplication app, Arguments args)

Function executed after parsing the command line arguments.

processArgs
void processArgs(IApplication app, Arguments args)

Function executed after (successfully) validating the command line arguments.

Meta