mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-24 04:09:29 +01:00
Don't start up if no args passed in CLI mode (or only help arg)
This commit is contained in:
@@ -40,9 +40,14 @@ namespace Flowframes
|
||||
Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
|
||||
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
|
||||
|
||||
CmdMode = Paths.GetExe().EndsWith("Cmd.exe");
|
||||
Cli.HandleCli();
|
||||
Debug = Cli.Debug || System.Diagnostics.Debugger.IsAttached;
|
||||
CmdMode = Paths.GetExe().EndsWith("Cmd.exe");
|
||||
|
||||
if(CmdMode && !Cli.CanStart)
|
||||
{
|
||||
Environment.Exit(0);
|
||||
}
|
||||
|
||||
// Show splash screen
|
||||
Application.EnableVisualStyles();
|
||||
|
||||
Reference in New Issue
Block a user