This commit is contained in:
LotP1
2024-12-26 19:54:02 +01:00
parent 1bac6ab19e
commit 8c0a82bb6e
5 changed files with 63 additions and 58 deletions

View File

@@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Ryujinx.BuildValidationTasks
{
public class Program
{
static void Main(string[] args)
{
// Display the number of command line arguments.
if (args.Length != 1)
{
if (args.Length == 0)
throw new ArgumentException("Error: too few arguments!");
else
throw new ArgumentException("Error: too many arguments!");
}
if (string.IsNullOrEmpty(args[0]))
throw new ArgumentException("Error: path is null or empty!");
if (!Path.Exists(args[0]))
throw new ArgumentException("Error: path does not exist!");
Console.WriteLine(args[0]);
Console.WriteLine(Path.GetFullPath(args[0]));
LocalesValidationTask.Execute(args[0]);
}
}
}