diff --git a/CHANGELIST.md b/CHANGELIST.md index 0a25c4a8..d343d976 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -30,6 +30,7 @@ - Fix typo in ToInternalProgram - Fix redumper error count parsing - Update to Aaru v5.3.2 LTS +- Update options loader with sane defaults ### 2.4 (2022-10-26) - Update to DIC 20211001 diff --git a/MPF.Core/Utilities/OptionsLoader.cs b/MPF.Core/Utilities/OptionsLoader.cs index 9ff9aac9..66cb35f4 100644 --- a/MPF.Core/Utilities/OptionsLoader.cs +++ b/MPF.Core/Utilities/OptionsLoader.cs @@ -14,8 +14,16 @@ namespace MPF.Core.Utilities /// public static (Options, string, int) LoadFromArguments(string[] args, int startIndex = 0) { - // Create the output values - var options = new Options(); + // Create the output values with defaults + var options = new Options() + { + RedumpUsername = null, + RedumpPassword = null, + InternalProgram = InternalProgram.NONE, + OutputSubmissionJSON = false, + CompressLogFiles = false, + }; + string parsedPath = null; // These values require multiple parts to be active