commandline icon indicating copy to clipboard operation
commandline copied to clipboard

Question: Value parsing based on type

Open MeikelLP opened this issue 3 years ago • 0 comments

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

teleport 123 456
tepeport otherside

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

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

Is that possible? What other options do I have?

MeikelLP avatar Oct 01 '22 22:10 MeikelLP