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 的命令行参数解析器
基础教程推荐
- .NET SerialPort DataReceived 事件未触发 2022-01-01
- 如果有人提交恶意软件Nuget包怎么办? 2022-01-01
- C# 从 List<List<int>> 中删除重 2022-01-01
- Moq It.Is<>不匹配 2022-01-01
- 如何使用 .Net 检查 Active Directory 服务器是否已启动并正在运行? 2022-01-01
- 我应该在后面的代码中直接使用 Linq To SQL 还是使 2022-01-01
- WPF 模态进度窗口 2022-01-01
- 禁止输入少量字符,例如'<'、'&a 2022-01-01
- Azure Functions:CosmosDBTrigger 未在 Visual Studio 中触发 2022-01-01
- 当值可以是对象或空数组时反序列化 JSON 2022-01-01
