From a934e682279af3a990d345d0eb201fbd60cf4c23 Mon Sep 17 00:00:00 2001 From: Robert Dailey Date: Wed, 22 Feb 2023 13:41:26 -0600 Subject: [PATCH] fix: Enable strict parsing to error on unknown CLI options --- CHANGELOG.md | 1 + src/Recyclarr.Cli/Program.cs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 072f0954..17893a1c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Deleted custom formats are now included in the log message showing the count of CFs synced. +- An error will now be presented if an invalid option is specified on the CLI. ## [4.3.0] - 2023-01-22 diff --git a/src/Recyclarr.Cli/Program.cs b/src/Recyclarr.Cli/Program.cs index e5267634..1db4f709 100644 --- a/src/Recyclarr.Cli/Program.cs +++ b/src/Recyclarr.Cli/Program.cs @@ -38,6 +38,8 @@ internal static partial class Program #endif config.Settings.PropagateExceptions = true; + config.Settings.StrictParsing = true; + config.SetApplicationName("recyclarr"); // config.SetApplicationVersion("v1.2.3");