Hacker News new | ask | show | jobs
by qwerty2021 1693 days ago
>Command line argument parsing

20-30 LoC maybe. `process.argv.slice(2).forEach(str => ... )`.

there is no access to the raw command-line invocation, sadly, so you really can't really do anything fancier than that.

>config loading

that thing "RC" package does - looking up the config file in random locations - is really strange to me. aren't you the one in control of where it is stored?

1 comments

Just looking at the readme for Coa it’s very obviously more than the code you outlined. You’re arguing against a strawman here.
honestly, yeah. I just saw "command line parser" and dismissed the rest as useless bloat