commandlineparser / commandlineparser/commandline

Use keyword to set positional argument

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

説明

I don't think this issue has been submitted before, but #56 seems to want the same sort of thing.

I want this syntax to be the normal usage:

app inputfile outputfile

But I want both arguments to be optional and fallback on defaults:

app

Which means that it would be nice to specify one but not the other:

app inputfile
app -t outputfile

Therefore, I'd like to be able to set outputfile via *either* a positional or a keyword argument. Is this supported?

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

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

評価

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

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

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