commandlineparser / commandlineparser/commandline

Question: Value parsing based on type

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

説明

I didn't find anything answering my question thus I'm asking here:

Is it possible to parse the options based on the given type? See the following example

```sh
teleport 123 456
```

```sh
tepeport otherside
```

And I have the following options class (record for the sake of brevity):

```c#
public record MyTeleportOptions(string Target, int X, int Y);
```

Is that possible? What other options do I have?

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

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

評価

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

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

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