Looking for a Command Line Argument Parser for .NET(寻找 .NET 的命令行参数解析器)
问题描述
我正在寻找一个命令行参数解析器,例如来自 http 的命令行解析器"://www.sellsbrothers.com/tools/Genghis/ .
I'm looking for a command line argument parser, such as "Command line parser" from http://www.sellsbrothers.com/tools/Genghis/ .
我正在寻找的功能:
- 自动生成使用情况
- 应该能够检查必需和可选参数
- 参数应支持带分隔符的 IEnumerable
- 应该支持标志参数
- 如果支持组合参数就好了,例如/fx"==/f/x"
- 最好不要在诸如/ftest.txt"==/f test.txt"之类的参数之后强制使用空格
附注:命令行解析器"非常好,我真的很喜欢它的设计,但是没有文档,没有新的更新,而且我不知道如何做某些事情,例如如何检查所需的参数.
推荐答案
我个人最喜欢的 3rd 方命令行解析库是 命令行解析器,我认为这就是您所指的那个.最近的版本是不到 2 个月前,并且有定期提交.如果您想要更成熟的产品,您可以查看 mono 项目中的控制台库(抱歉,我目前似乎找不到指向命名空间的直接链接,但它是 mono 框架的一部分)
My personal favourite 3rd party commandline parsing library is Command Line Parser and I assume this is the one you are referring to. The most recent release was less than 2 months ago and there are regular commits. If you want a more mature offering you could chek out the console library in the mono project (sorry I can't seem to find a direct link to the namespace at the moment, but its a part of the mono framework)
这篇关于寻找 .NET 的命令行参数解析器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:寻找 .NET 的命令行参数解析器


- C#MongoDB使用Builders查找派生对象 2022-09-04
- 良好实践:如何重用 .csproj 和 .sln 文件来为 CI 创建 2022-01-01
- WebMatrix WebSecurity PasswordSalt 2022-01-01
- 在哪里可以找到使用中的C#/XML文档注释的好例子? 2022-01-01
- Web Api 中的 Swagger .netcore 3.1,使用 swagger UI 设置日期时间格式 2022-01-01
- C# 中多线程网络服务器的模式 2022-01-01
- 输入按键事件处理程序 2022-01-01
- 如何用自己压缩一个 IEnumerable 2022-01-01
- 带有服务/守护程序应用程序的 Microsoft Graph CSharp SDK 和 OneDrive for Business - 配额方面返回 null 2022-01-01
- MoreLinq maxBy vs LINQ max + where 2022-01-01