Allow wildcarded paths for inputs

This commit is contained in:
Matt Nadareski
2020-08-08 21:53:34 -07:00
parent ff8aebd3f0
commit 98a8c9cbfd
4 changed files with 48 additions and 23 deletions

View File

@@ -519,6 +519,10 @@ namespace SabreTools.Library.Help
if (!valid)
valid = File.Exists(input) || Directory.Exists(input);
// If we're not valid at this point, we weant to check if the flag is a wildcarded input
if (!valid)
valid = input.Contains("*") || input.Contains("?");
return valid;
}