mirror of
https://github.com/Stone-Red-Code/YesNt-Interpreter.git
synced 2026-09-07 07:56:06 +02:00
Move file existence check and improve process output handling
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user