329 Bytes

Lapp is a command line parser that uses the regular help text for the synopsis as the specification for the options and arguments, it was originally written by Steve Donovan in Lua:

...and ported to Nim by Steve. Then I made it work with current Nim.

See example.nim for how to use it.