From 195aaba308563cb18eaef5808cf9e3a54355d9d8 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sat, 19 Sep 2020 15:54:21 -0700 Subject: [PATCH] Fix batch filtering for per machine --- SabreTools/Features/Batch.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SabreTools/Features/Batch.cs b/SabreTools/Features/Batch.cs index c156c1a9..6cd5d741 100644 --- a/SabreTools/Features/Batch.cs +++ b/SabreTools/Features/Batch.cs @@ -177,10 +177,10 @@ Reset the internal state: reset();"; Field filterField = command.Arguments[0].AsField(); string filterValue = command.Arguments[1]; bool? filterRemove = false; - if (command.Arguments.Count == 3) + if (command.Arguments.Count >= 3) filterRemove = command.Arguments[2].AsYesNo(); bool? filterPerMachine = false; - if (command.Arguments.Count == 4) + if (command.Arguments.Count >= 4) filterPerMachine = command.Arguments[3].AsYesNo(); // If we had an invalid input, log and continue