I upgraded from nim version 0.17 to 0.18 and I'm in the process of updating my code to remove the deprecated warnings.
What is the replacement for parseopt2?
indeed, cligen seems the best option, allows generating help with 0 boilerplate, using CT reflection, eg:
proc foobar(foo=1, bar=2.0, baz="hi", verb=false, paths: seq[string]) = discard
when isMainModule: import cligen; dispatch(foobar) # now call with: `./app --foo=2 --bar=2.7 ...`