Every CLI tool has the same validation code hidden somewhere:

  • “option A requires option B”
  • “can't use X and Y together”
  • “this only works in production mode”

I got tired of writing it. So I built something that makes it unnecessary.

https://hackers.pub/@hongminhee/2025/stop-writing-cli-validation-parse-it-right-the-first-time

4
1
0

If you have a fediverse account, you can quote this note from your own instance. Search https://hollo.social/@hongminhee/019920e9-023e-7f49-bfd8-9eddebddc270 on your instance and quote it. (Note that quoting is not supported in Mastodon.)