打印软件版本

This commit is contained in:
nilaoda 2022-10-23 21:16:35 +08:00
parent 2bff0132d0
commit daabd71540
1 changed files with 3 additions and 1 deletions

View File

@ -433,7 +433,8 @@ namespace N_m3u8DL_RE.CommandLine
Environment.Exit(0);
}
var rootCommand = new RootCommand("N_m3u8DL-RE (Beta version) 20221023")
var info = "N_m3u8DL-RE (Beta version) 20221023";
var rootCommand = new RootCommand(info)
{
Input, TmpDir, SaveDir, SaveName, BaseUrl, ThreadCount, DownloadRetryCount, AutoSelect, SkipMerge, SkipDownload, CheckSegmentsCount,
BinaryMerge, DelAfterDone, WriteMetaJson, AppendUrlParams, ConcurrentDownload, Headers, /**SavePattern,**/ SubOnly, SubtitleFormat, AutoSubtitleFix,
@ -444,6 +445,7 @@ namespace N_m3u8DL_RE.CommandLine
LivePerformAsVod, LiveRealTimeMerge, LiveKeepSegments, LiveRecordLimit, LiveWaitTime,
MuxImports, VideoFilter, AudioFilter, SubtitleFilter, MoreHelp
};
Logger.Info(info);
rootCommand.TreatUnmatchedTokensAsErrors = true;
rootCommand.SetHandler(async (myOption) => await action(myOption), new MyOptionBinder());