优化`morehelp`逻辑

This commit is contained in:
nilaoda 2022-09-26 00:13:12 +08:00
parent cfff3a138b
commit f8c1123d65
1 changed files with 1 additions and 1 deletions

View File

@ -415,7 +415,7 @@ namespace N_m3u8DL_RE.CommandLine
{ {
var argList = new List<string>(args); var argList = new List<string>(args);
var index = -1; 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 option = argList[index + 1];
var msg = option switch var msg = option switch