Skip to content

Commit 14401a5

Browse files
committed
Added quit argument
1 parent 933bb22 commit 14401a5

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

SteamInstaller/Program.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ class Program
2424
/// <param name="args"></param>
2525
static void Main(string[] args)
2626
{
27+
bool quit = false;
28+
if (args.Length > 0 && args[1].Equals("/quit"))
29+
{
30+
quit = true;
31+
}
32+
2733
Console.WriteLine(Environment.NewLine);
2834
WriteColor(@"[$$$$$$$$\ $$\ $$\ $$$$$$\ $$\]", ConsoleColor.DarkGreen);
2935
WriteColor(@"[$$ _____|\__| $$ | $$ __$$\ $$ |]", ConsoleColor.DarkGreen);
@@ -76,7 +82,12 @@ static void Main(string[] args)
7682
compiler.Close();
7783
}
7884

79-
Console.ReadKey();
85+
if (!quit)
86+
{
87+
Console.WriteLine(Environment.NewLine);
88+
Console.WriteLine("Push any key to close the console");
89+
Console.ReadKey();
90+
}
8091
}
8192

8293
/// <summary>

0 commit comments

Comments
 (0)