diff --git a/CHANGELIST.md b/CHANGELIST.md index 28bf52c4..5fc773fc 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -28,6 +28,7 @@ - Ensure tracks are assigned in Aaru - Custom theme colors - Use speed for CLI from configuration +- Fix minimum number of args checks ### 3.2.0 (2024-06-20) diff --git a/MPF.CLI/Program.cs b/MPF.CLI/Program.cs index fbccb29f..ac841c28 100644 --- a/MPF.CLI/Program.cs +++ b/MPF.CLI/Program.cs @@ -38,7 +38,7 @@ namespace MPF.CLI } // Check for the minimum number of arguments - if (args.Length < 5) + if (args.Length < 4) { DisplayHelp("Not enough arguments have been provided, exiting..."); return; @@ -131,8 +131,8 @@ namespace MPF.CLI string? paramStr = env.GetFullParameters(speed); // Process custom parameters - if (args.Length > 5) - paramStr = string.Join(" ", args.Skip(5).ToArray()); + if (args.Length > 4) + paramStr = string.Join(" ", args.Skip(4).ToArray()); if (string.IsNullOrEmpty(paramStr)) {