51 ms·
Don't know anything about waf, but the `ctx.add_option` example you've posted looks like it takes very similar parameters to add_argument in argparse[0]. [0]:
by chucksmash 3y ago
Don't know anything about waf, but the `ctx.add_option` example you've posted looks like it takes very similar parameters to add_argument in argparse[0].
[0]: https://docs.python.org/3/library/argparse.html#quick-links-for-add-argument https://docs.python.org/3/library/argparse.html#quick-links-...
- yeti-sh 3y agoThanks for the point. I've had to deal with argparse-based code (not finding it very enjoyable) but didn't recognize the resemblance.