From a338b57615176083703663b6127e8744c908a7e9 Mon Sep 17 00:00:00 2001 From: KoalaBear Date: Mon, 27 Jun 2022 19:46:13 +0200 Subject: [PATCH] - Hopefully fix #117 --- src/OpenDirectoryDownloader/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OpenDirectoryDownloader/Program.cs b/src/OpenDirectoryDownloader/Program.cs index 1e22f63d..e52e0d47 100644 --- a/src/OpenDirectoryDownloader/Program.cs +++ b/src/OpenDirectoryDownloader/Program.cs @@ -55,9 +55,9 @@ static async Task Main(string[] args) { List errors = o.ToList(); - stopProcessing = errors.Any(e => e.StopsProcessing); + stopProcessing = errors.Any(e => e.StopsProcessing || e.Tag == ErrorType.UnknownOptionError); - if (errors.Any(e => e.Tag == ErrorType.HelpRequestedError || e.Tag == ErrorType.VersionRequestedError)) + if (errors.Any(e => e.Tag == ErrorType.HelpRequestedError || e.Tag == ErrorType.VersionRequestedError || e.Tag == ErrorType.UnknownOptionError)) { return; }