百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

CommandLineUtils

> 编程语言
开源

用于 .NET 的命令行解析和实用程序

2.3K stars0 点赞1 次浏览
访问官网GitHub

工具介绍

用于 .NET 的命令行解析和实用程序

CommandLineUtils ==================== [![Build Status][ci-badge]][ci] [![Code Coverage][codecov-badge]][codecov] [![NuGet][nuget-badge] ![NuGet Downloads][nuget-download-badge]][nuget] 此项目可帮助您使用 .NET 创建命令行应用程序。它简化了对命令行提供的参数的解析、用户输入的验证以及帮助文本的生成。 此项目的路线图已被固定到问题列表的顶部。 [https://github.com/natemcmaster/CommandLineUtils/issues/] 使用方法 请参阅 文档 以获取 API 参考、示例和教程。 此外,还可以参阅 docs/samples/ 中的更多示例,例如:

  • Hello world
  • 异步控制台应用程序
  • 使用子命令结构化应用程序
  • 使用属性定义选项
  • 交互式控制台提示
  • 必需的选项和参数

安装库

csharp
using System;
使用 McMaster.Extensions.CommandLineUtils;
public class Program
{
public static int Main(string[] args)

[ci]: https://github.com/natemcmaster/CommandLineUtils/actions?query=workflow%3ACI+branch%3Amain
[ci-badge]: https://github.com/natemcmaster/CommandLineUtils/workflows/CI/badge.svg
[codecov]: https://codecov.io/gh/natemcmaster/CommandLineUtils
[codecov-badge]: https://codecov.io/gh/natemcmaster/CommandLineUtils/branch/main/graph/badge.svg?token=l6uSsHZ8nA
[nuget]: https://www.nuget.org/packages/McMaster.Extensions.CommandLineUtils/
[nuget-badge]: https://img.shields.io/nuget/v/McMaster.Extensions.CommandLineUtils.svg?style=flat-square
[nuget-download-badge]: https://img.shields.io/nuget/dt/McMaster.Extensions.CommandLineUtils?style=flat-square

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#command-linedotnetdotnet-core

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言