Update Program.cs

Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com>
This commit is contained in:
2025-02-27 19:35:04 +07:00
parent 57c1fd0095
commit fdc1450c3e

View File

@@ -586,7 +586,7 @@ namespace domain_utility
static void Main(string[] args)
{
Console.Title = Assembly.GetExecutingAssembly().GetCustomAttribute<AssemblyTitleAttribute>().Title;
if (args[0] == "reboot")
if (args.Length > 0 && args[0] == "reboot")
{
StartRestartComputers();
return;