diff --git a/src/CommandProcessor.cs b/src/CommandProcessor.cs index 82153be..2a76469 100644 --- a/src/CommandProcessor.cs +++ b/src/CommandProcessor.cs @@ -9,12 +9,16 @@ public static class CommandProcessor public static void Process(List args) { - if (File.Exists(args[0])) { + string[] files = args.Where(File.Exists).ToArray(); + if (files.Length == args.Count) { WindowHelper.SetWindowMode(WindowMode.Hidden); - ProcessShellInput(args[0]); + foreach (string file in files) { + ProcessShellInput(file); + } + return; } - + if (args[0].AsFlag() == 'h') { Console.WriteLine(""" Compress a file: