Skip to content

Commit

Permalink
移除不在支持的功能
Browse files Browse the repository at this point in the history
  • Loading branch information
JiuLing-zhang committed Dec 26, 2024
1 parent 8183924 commit 79648bf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
27 changes: 0 additions & 27 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -503,33 +503,6 @@ List<string> GetOneGroupAllMatch("<div>a1</div><div>a2</div><div>a3</div>", @"<d
//返回值 success=true,result["name"]="jiuling",result["age"]="0"
```

## `StartupCommandUtils`
启动参数解析工具类。

检查是否包含参数。

```C#
StartupCommandUtils.Initialize("-a test1 test2 -b");
bool result = StartupCommandUtils.HasCommand("-a");
//result 的值为 True
```

获取指定参数。

```C#
StartupCommandUtils.Initialize("-a test1 test2 -b -c test-c");
IList<string> result = StartupCommandUtils.GetCommandValue("-a");
//result包含"test1"和"test3"两个值
```

尝试获取指定参数

```C#
StartupCommandUtils.Initialize("-a test1 -b test");
bool result = StartupCommandUtils.TryGetCommandValue("-a", out args);
//result为是否找到对应参数,args为获取到的参数值
```

## `TimestampUtils`
时间戳相关的类。

Expand Down
1 change: 1 addition & 0 deletions src/JiuLing.CommonLibs/Text/StartupCommandUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ namespace JiuLing.CommonLibs.Text
/// <summary>
/// 启动参数解析工具类
/// </summary>
[Obsolete("该功能后续可能会删除,请使用 CommandLineArgsHelper 替换")]
public static class StartupCommandUtils
{
private static string _input;
Expand Down

0 comments on commit 79648bf

Please sign in to comment.