Update options loader with sane defaults (fixes #442)

This commit is contained in:
Matt Nadareski
2022-12-24 12:59:58 -08:00
parent 63fafd05b3
commit 21b0c9a08d
2 changed files with 11 additions and 2 deletions

View File

@@ -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

View File

@@ -14,8 +14,16 @@ namespace MPF.Core.Utilities
/// </summary>
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