Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Questions about undocumented Option.Action vs Command.SetAction

オープン
#2,777 コメント 6 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
30/100
issue の種類
ドキュメント
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
csharp
領域
cli

調査の方向性

参照されている Option.Action の定義がある Option.cs から始め、コマンドライン ドキュメントにある Command.SetAction() の例と比較します。Option.Action がサポートされているのか、非推奨なのかを判断し、その意図された使用方法と 2 つのデリゲート システムの関係を文書化します。MSDN ドキュメントが使用可能な例とともにこれらの質問に答えていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Area-Documentation question

Hello - I am trying to familiarize myself with this library and I noticed Option.Action https://github.com/dotnet/command-line-api/blob/main/src/System.CommandLine/Option.cs#L131 but it is not documented anywhere (as far as I can tell) in the MSDN docs here: https://learn.microsoft.com/en-us/dotnet/standard/commandline/

Is this feature deprecated? If not - are there examples anywhere of how it can/should be used?

I find it confusing when compared to the well documented Command.SetAction() examples - are these two action delegate systems at odds or complimentary?

主要言語
C#
スター
3.7k
フォーク
434
平均マージ
4時間 46分
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

dotnet/command-line-api のほかの issue

dotnet/command-line-api の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。