From 79648bfbf820438967eb4ed748151a73bfc74ccf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B9=9D=E9=9B=B6?= <78294929+JiuLing-zhang@users.noreply.github.com> Date: Thu, 26 Dec 2024 23:29:09 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E4=B8=8D=E5=9C=A8=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E7=9A=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/README.md | 27 ------------------- .../Text/StartupCommandUtils.cs | 1 + 2 files changed, 1 insertion(+), 27 deletions(-) diff --git a/docs/README.md b/docs/README.md index 55eaed3..4890421 100644 --- a/docs/README.md +++ b/docs/README.md @@ -503,33 +503,6 @@ List GetOneGroupAllMatch("
a1
a2
a3
", @" result = StartupCommandUtils.GetCommandValue("-a"); -//result包含"test1"和"test3"两个值 -``` - -尝试获取指定参数 - -```C# -StartupCommandUtils.Initialize("-a test1 -b test"); -bool result = StartupCommandUtils.TryGetCommandValue("-a", out args); -//result为是否找到对应参数,args为获取到的参数值 -``` - ## `TimestampUtils` 类 时间戳相关的类。 diff --git a/src/JiuLing.CommonLibs/Text/StartupCommandUtils.cs b/src/JiuLing.CommonLibs/Text/StartupCommandUtils.cs index 6e6c118..2c0161a 100644 --- a/src/JiuLing.CommonLibs/Text/StartupCommandUtils.cs +++ b/src/JiuLing.CommonLibs/Text/StartupCommandUtils.cs @@ -8,6 +8,7 @@ namespace JiuLing.CommonLibs.Text /// /// 启动参数解析工具类 /// + [Obsolete("该功能后续可能会删除,请使用 CommandLineArgsHelper 替换")] public static class StartupCommandUtils { private static string _input;