用于 .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/ 中的更多示例,例如:
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,或尚未同步最近议题。