Skip to content

Commit a3ee675

Browse files
committed
Revert and fix the prompt instead
1 parent 1b31b1e commit a3ee675

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

IPBan/IPBanMain.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,13 @@ private static bool ProcessCommandLine(string[] args)
7575
{
7676
if (args.Length != 2)
7777
{
78-
Console.WriteLine("Usage: param file with lines of log-filename regex-failure-filename regex-failure-timestamp-format regex-success-filename regex-success-timestamp-format");
78+
Console.WriteLine("Usage: param file with lines of log-filename regex-failure regex-failure-timestamp-format regex-success regex-success-timestamp-format");
7979
Console.WriteLine("Can use a . to not specify the regex or timestamp format");
8080
}
8181
else
8282
{
8383
var lines = System.IO.File.ReadAllLines(args[1]);
84-
var regexFailure = System.IO.File.Exists(lines[1]) ? System.IO.File.ReadAllText(lines[1]) : string.Empty;
85-
var regexSuccess = System.IO.File.Exists(lines[2]) ? System.IO.File.ReadAllText(lines[2]) : string.Empty;
86-
IPBanLogFileTester.RunLogFileTest(lines[0], regexFailure, regexSuccess, lines[3], lines[4]);
84+
IPBanLogFileTester.RunLogFileTest(lines[0], lines[1], lines[2], lines[3], lines[4]);
8785
}
8886
return true;
8987
}

0 commit comments

Comments
 (0)