pacserver/Program.cs

20 lines
743 B
C#
Raw Normal View History

2023-05-27 18:32:46 +02:00
public class Program {
2023-06-03 09:35:43 +02:00
static void Main(string[] args) {
if (args.Length == 0) {
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("Please specify an option.");
Console.ResetColor();
} else {
switch (args[0]) {
case "determinePacmanCacheDirectory":
Console.WriteLine(Pacserver.determinePacmanCacheDirectory());
2023-06-03 09:35:43 +02:00
break;
default:
Console.ForegroundColor = ConsoleColor.Yellow;
Console.WriteLine("Possible options are: determinePacmanCacheDirectory");
Console.ResetColor();
2023-06-03 09:35:43 +02:00
break;
}
}
}
2023-05-27 18:32:46 +02:00
}