3 ms·
>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
by qwerty2021 5y 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?
- afavour 5y agoJust looking at the readme for Coa it’s very obviously more than the code you outlined. You’re arguing against a strawman here.
- qwerty2021 5y agohonestly, yeah. I just saw "command line parser" and dismissed the rest as useless bloat