commandline
commandline copied to clipboard
Question: Value parsing based on type
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?