I’ve been following the discussion and it’s cool to see how everyone handles CLI parsing(https://forum.nim-lang.org/t/13777). I thought I’d share a macro-based approach I use called Kicker. https://github.com/BLeAm/kicker.nim
It’s pretty straightforward, the macro inspects your proc and maps parameters into five modes: positional, optional, flags, rest args, and repeated options.
It’s been a 'less is more' solution for me, no need to manually build parser objects or configuration tables. You just write your logic and let the macro handle the mapping. Actually, I developed it for personal use but just thought I’d throw it out there as another way to leverage Nim’s macros for CLI tools!
ooooooooh that's wtf I'm talking about! Amazing stuff.
I was thinking about making some thing like this but never did.