3 ms·
That's basically what my MainArgs Scala library does: take either a method definition or class structure and use it's structure to parse your command line argum
by lihaoyi 1y ago
That's basically what my MainArgs Scala library does: take either a method definition or class structure and use it's structure to parse your command line arguments. You get the final fields you want immediately without needing to imperatively walk to args array (and probably getting it wrong!)
https://github.com/com-lihaoyi/mainargs https://github.com/com-lihaoyi/mainargs