Post

What do you use these days to build simple CLI tools in Node? Is sade still the go-to, or do you go plain node:util parseArgs() and some manual wrangling? I have a CLI tool that has 3-4 subcommands with 1-2 options each. Wonder how many dependecies I'm willing to accept here. Maybe @e18e.dev knows?

1 repost7 likes

Oh, good point. I think I do it like that because I once read that there is a limit of the amount of args you can give to Math.max, but in this case it would make the code much simpler!

parseArgs gets you a long way. I personally use sade quite a bit too, and we're also working on something to fill this gap in bombshell 👀

See, I was expecting bombshell to have exactly what I needed after seeing all the positive reviews. Thanks for noticing and I sincerely hope this is the nerd snipe you mentioned yesterday 😂