commandlineparser / commandlineparser/commandline

I get "Option 'version' is unknown" if it comes after other user-defined options on the command line

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

説明

Since `version` is pretty much built-in, it should never be "unknown", especially if this message is immediately followed by helptext that clearly shows that it is a valid option.

```
3676 ~/fork/foo-etl$ dotnet etl/bin/Debug/netcoreapp3.0/etl.dll -c foo -d bar --version
etl 0.0.1
Copyright (C) 2020 etl

ERROR(S):
Option 'version' is unknown.

-c, --configdir Required. Path to dir that contains client configurations

-d, --invoicedir Required. Path to dir that contains invoices are

--help Display this help screen.

--version Display version information.
```

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

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

評価

この issue はまだ評価されていません。

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

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