Hacker News new | ask | show | jobs
by chucksmash 961 days 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-...

1 comments

Thanks for the point. I've had to deal with argparse-based code (not finding it very enjoyable) but didn't recognize the resemblance.