From f8c1123d65d2db0b46b437d4f89a88783c25d8d0 Mon Sep 17 00:00:00 2001 From: nilaoda Date: Mon, 26 Sep 2022 00:13:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96`morehelp`=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs b/src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs index 439f417..b9248c1 100644 --- a/src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs +++ b/src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs @@ -415,7 +415,7 @@ namespace N_m3u8DL_RE.CommandLine { var argList = new List(args); var index = -1; - if ((index = argList.IndexOf("--morehelp")) == 0 && argList.Count == 2) + if ((index = argList.IndexOf("--morehelp")) >= 0 && argList.Count > index + 1) { var option = argList[index + 1]; var msg = option switch