Skip to main content

system-commandline-options-and-arguments

Use when declaring or configuring System.CommandLine inputs — Option<T> and Argument<T>: names vs aliases, Description, Required, DefaultValueFactory, Arity, restricting a value to a fixed set with AcceptOnlyFromAmong, requiring that a file or directory path already exists, rejecting bad or out-of-range input, and checking one option against another. This is where CustomParser, Validators.Add and result.AddError belong. Covers the constructor-alias gotcha in depth.

跳到安装

来源信息

仓库
richlander/dotnet-package-skills
最近来源活动
2026年8月10日 20:43
检测到的 SKILL.md 语言
英语
星标
1
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。