Support relative folders from command line

This commit is contained in:
stax76
2024-07-26 00:14:44 +02:00
parent 1243d1381b
commit f3fdef780d
2 changed files with 3 additions and 1 deletions

View File

@@ -117,7 +117,8 @@ public class CommandLine
foreach (string arg in Environment.GetCommandLineArgs().Skip(1))
if (!arg.StartsWith("--") && (arg == "-" || arg.Contains("://") ||
arg.Contains(":\\") || arg.StartsWith("\\\\") || File.Exists(arg)))
arg.Contains(":\\") || arg.StartsWith("\\\\") || arg.StartsWith(".") ||
File.Exists(arg)))
files.Add(arg);