commandlineparser / commandlineparser/commandline

Usage of `dotnet tools` on assemblies with CommandLineParser results in unexpected output

オープン
#931 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C#
スター
4.8k
フォーク
478
PR マージ指標
30日以内にマージされた PR はありません

説明

I was trying to add **CommandLineParser** to a _asp.net core_ project of mine to conditionally apply seed and test data on runs.

If I run any sort of tool on the assembly I get output from the Parser.

F.e. `dotnet ef migrations list`

```
ERROR(S):
Option 'applicationName' is unknown.

-s, --seed Seed required data.

-t, --test Seed data for dev and testing purposes.

-a, --auth Seed auth data.

--help Display this help screen.

--version Display version information.
```

I'm assuming that the tools themselves are passing these options or something along the line. Everything seems to work properly, but is this something other people have dealt with in some way?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

まず、CommandLineParser を使用する ASP.NET Core アセンブリに対して `dotnet ef migrations list` を実行し、動作を再現します。予期しない `applicationName` オプションを含め、ツールから渡される引数をパーサーがどのように処理するかを追跡します。ツールのコマンドがパーサーの出力を出さなくなり、アプリケーションでドキュメント化されている seed、test、auth オプションが引き続き機能すれば完了です。

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

評価

技術スタック
csharp
領域
cli
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

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

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