【文件属性】:
文件名称:commandline-parser:命令行解析器
文件大小:30KB
文件格式:ZIP
更新时间:2021-05-10 09:19:06
C#
.NET命令行解析器
这个项目是关于为.NET提供一个很棒的命令行解析器。
目标:
轻的
只需很少的配置
帮助字符串
支持多种命令,例如版本控制工具
专为跨平台使用而设计
句法
语法约定在很大程度上受到以下现有约定的启发:
单字母预选赛
单字符限定符由单个破折号分隔,例如
.\tool.exe -x -d -f
它们可以捆绑在一起,例如
.\tool.exe -xdf
您也可以使用斜杠,例如
.\tool.exe /x /d /f
但是,斜杠不支持捆绑。 例如,无法识别以下内容:
# This is not equivalent to -xdf
.\tool.exe /xdf
长名预选赛
长名称(又称为关键字选项)由两个破折号分隔,例如:
.\tool.exe --verbose
另外,您可以使用斜杠:
.\tool.exe /verbose
使用两个破折号可以避免捆绑形式产生歧
【文件预览】:
commandline-parser-master
----tools()
--------test.proj(611B)
--------build.proj(1KB)
--------compile.proj(1KB)
--------restore.proj(2KB)
----LICENSE(1KB)
----build.proj(234B)
----src()
--------Key.snk(596B)
--------CommandLineSample()
--------.nuget()
--------System.CommandLine()
--------System.CommandLine.sln(2KB)
--------System.CommandLine.UnitTests()
----build.cmd(140B)
----.gitignore(70B)
----README.md(3KB)