public static int ShowVersion(MBINFile mbin, bool quiet = false) { using (var forceConsole = new ForceConsoleOutput()) { Logger.LogInfo(Version.GetVersionString(mbin, quiet)); } return(0); }
/// <summary> /// Display the help info and wait for a key press. /// </summary> /// <returns>Always returns 0 (exit code = success)</returns> public static int ShowHelp(ErrorCode code = ErrorCode.Success) { if (Console.IsOutputRedirected) { return((int)code); } using (var forceConsole = new ForceConsoleOutput()) { Console.Out.Write(GetHelpInfo()); } WaitForKeypress(); return((int)code); }
public static int ShowSuccess(ErrorCode code = ErrorCode.Success) { if (Console.IsOutputRedirected) { return((int)code); } using (var forceConsole = new ForceConsoleOutput()) { Console.Out.Write("MBINCompiler registered to the system path."); } WaitForKeypress(); return((int)code); }