修改版本输出位置

This commit is contained in:
nilaoda 2022-10-24 10:27:09 +08:00
parent daabd71540
commit 9d249a7d9a
2 changed files with 5 additions and 3 deletions

View File

@ -17,6 +17,8 @@ namespace N_m3u8DL_RE.CommandLine
{ {
internal partial class CommandInvoker internal partial class CommandInvoker
{ {
public const string VERSION_INFO = "N_m3u8DL-RE (Beta version) 20221024";
[GeneratedRegex("((best|worst)\\d*|all)")] [GeneratedRegex("((best|worst)\\d*|all)")]
private static partial Regex ForStrRegex(); private static partial Regex ForStrRegex();
@ -433,8 +435,7 @@ namespace N_m3u8DL_RE.CommandLine
Environment.Exit(0); Environment.Exit(0);
} }
var info = "N_m3u8DL-RE (Beta version) 20221023"; var rootCommand = new RootCommand(VERSION_INFO)
var rootCommand = new RootCommand(info)
{ {
Input, TmpDir, SaveDir, SaveName, BaseUrl, ThreadCount, DownloadRetryCount, AutoSelect, SkipMerge, SkipDownload, CheckSegmentsCount, Input, TmpDir, SaveDir, SaveName, BaseUrl, ThreadCount, DownloadRetryCount, AutoSelect, SkipMerge, SkipDownload, CheckSegmentsCount,
BinaryMerge, DelAfterDone, WriteMetaJson, AppendUrlParams, ConcurrentDownload, Headers, /**SavePattern,**/ SubOnly, SubtitleFormat, AutoSubtitleFix, BinaryMerge, DelAfterDone, WriteMetaJson, AppendUrlParams, ConcurrentDownload, Headers, /**SavePattern,**/ SubOnly, SubtitleFormat, AutoSubtitleFix,
@ -445,7 +446,7 @@ namespace N_m3u8DL_RE.CommandLine
LivePerformAsVod, LiveRealTimeMerge, LiveKeepSegments, LiveRecordLimit, LiveWaitTime, LivePerformAsVod, LiveRealTimeMerge, LiveKeepSegments, LiveRecordLimit, LiveWaitTime,
MuxImports, VideoFilter, AudioFilter, SubtitleFilter, MoreHelp MuxImports, VideoFilter, AudioFilter, SubtitleFilter, MoreHelp
}; };
Logger.Info(info);
rootCommand.TreatUnmatchedTokensAsErrors = true; rootCommand.TreatUnmatchedTokensAsErrors = true;
rootCommand.SetHandler(async (myOption) => await action(myOption), new MyOptionBinder()); rootCommand.SetHandler(async (myOption) => await action(myOption), new MyOptionBinder());

View File

@ -56,6 +56,7 @@ namespace N_m3u8DL_RE
static async Task DoWorkAsync(MyOption option) static async Task DoWorkAsync(MyOption option)
{ {
Logger.Info(CommandInvoker.VERSION_INFO);
Logger.LogLevel = option.LogLevel; Logger.LogLevel = option.LogLevel;
if (option.UseSystemProxy == false) if (option.UseSystemProxy == false)