diff --git a/Test/Program.cs b/Test/Program.cs index 527232fc..066994b6 100644 --- a/Test/Program.cs +++ b/Test/Program.cs @@ -18,7 +18,7 @@ namespace Test p.ProgressChanged += Protector.Changed; // Set initial values for scanner flags - bool debug = false, archives = true, packers = true, info = false, extract = false; + bool debug = false, archives = true, packers = true, paths = true, info = false, extract = false; string outputPath = string.Empty; var inputPaths = new List(); @@ -52,6 +52,11 @@ namespace Test packers = false; break; + case "-ns": + case "--no-paths": + paths = false; + break; + case "-i": case "--info": info = true; @@ -83,7 +88,7 @@ namespace Test } // Create scanner for all paths - var scanner = new Scanner(archives, packers, debug, p); + var scanner = new Scanner(archives, packers, paths, debug, p); // If we have extraction, check the output path exists and is valid if (extract) @@ -145,6 +150,7 @@ namespace Test Console.WriteLine("-d, --debug Enable debug mode"); Console.WriteLine("-na, --no-archives Disable scanning archives"); Console.WriteLine("-np, --no-packers Disable scanning for packers"); + Console.WriteLine("-ns, --no-paths Disable scanning for path checks"); Console.WriteLine("-i, --info Print executable info"); Console.WriteLine("-x, --extract Extract archive formats"); Console.WriteLine("-o, --outdir [PATH] Set output path for extraction (REQUIRED)");