/// <summary> /// Shows help and exits with the given exit code /// </summary> /// <param name="ExitCode">Exit code</param> private static void Help(EXITCODE ExitCode) { Help(); Environment.Exit((int)ExitCode); }
/// <summary> /// Print an error message and exit if an exit code is specified /// </summary> /// <param name="msg">The message to print</param> /// <param name="exitCode"></param> public static void Error(object msg, EXITCODE exitCode = EXITCODE.NONE) { Error(msg, (int)exitCode); }