4 ms·
Well, cligen is pretty mature/featureful, less work to use and well maintained and is the most common recommendation in Nim. If you happen to like more verbose
by cb321 6y ago
Well, cligen is pretty mature/featureful, less work to use and well maintained and is the most common recommendation in Nim. If you happen to like more verbosely specified CLI interfaces like Python's argparse there are at least two pretty close to the Python argparse -- therapist [1] and nim-argparse [2]. There is much more to any programming language than its stdlib. { If you find these insufficiently "drop-in compatible", well, you can write your own port of argparse.py that is closer. :-) That is probably a good exercise. }
[1] https://maxgrenderjones.bitbucket.io/therapist/latest/therapist.html https://maxgrenderjones.bitbucket.io/therapist/latest/therap...
[2] https://www.iffycan.com/nim-argparse/argparse.html https://www.iffycan.com/nim-argparse/argparse.html
- blackrock 6y agoI did entertain that idea. But it would’ve detracted my efforts from my actual goal. therapist looks interesting. I’ll take a look at this. Thanks.