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 的命令行参数解析器


基础教程推荐
- 为什么Flurl.Http DownloadFileAsync/Http客户端GetAsync需要 2022-09-30
- 如何激活MC67中的红灯 2022-01-01
- 如何在 IDE 中获取 Xamarin Studio C# 输出? 2022-01-01
- c# Math.Sqrt 实现 2022-01-01
- 将 XML 转换为通用列表 2022-01-01
- 将 Office 安装到 Windows 容器 (servercore:ltsc2019) 失败,错误代码为 17002 2022-01-01
- 有没有办法忽略 2GB 文件上传的 maxRequestLength 限制? 2022-01-01
- MS Visual Studio .NET 的替代品 2022-01-01
- rabbitmq 的 REST API 2022-01-01
- SSE 浮点算术是否可重现? 2022-01-01