Move file existence check and improve process output handling

This commit is contained in:
Stone_Red
2026-03-06 00:09:11 +01:00
parent 246e05dcd9
commit 1872c4fb35
3 changed files with 11 additions and 11 deletions
+7
View File
@@ -1,9 +1,16 @@
using System;
using System.IO;
using YesNt.Interpreter.Runtime;
if (args.Length == 1)
{
if (!File.Exists(args[0]))
{
Console.WriteLine("File not found: " + args[0]);
return;
}
YesNtInterpreter interpreter = new YesNtInterpreter();
interpreter.Execute(args[0]);
}