寻找.NET的命令行参数解析器 [英] Looking for a Command Line Argument Parser for .NET

查看:180
本文介绍了寻找.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 with separator support

  • 应支持标志参数

  • 很高兴支持组合参数,例如/ fx==/ f / x

  • 最好在/ftest.txt==/ f test.txt之类的参数后强制使用空格。

  • Auto-generation of usage
  • Should able to check required and optional parameters
  • Parameters should support IEnumerable with separator support
  • Should support flag parameters
  • Would be nice to support combining parameters such as "/fx" == "/f /x"
  • Would be nice to not force for a space after a parameter such as "/ftest.txt" == "/f test.txt"

PS:
命令行解析器是相当不错的,我真的很喜欢它的设计,但没有文档,没有新的更新和

推荐答案

我个人最喜欢的第三方命令行解析库是命令行解析器,我假设这是您要引用的。最近的发布不到2个月前,有正常提交。如果你想要一个更成熟的产品,你可以cheok出单人项目中的控制台库(对不起,我现在似乎找不到直接链接到命名空间,但它是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的命令行参数解析器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆