There are already big "do-it-all" CLI libraries like "yargs-parser" (85 kB), "meow" (419 kB), "minimist" (55kB), etc.
Flaget is intentionally minimal — small size is the killer feature. I want to keep it as compact as possible without bloating it with rarely needed functionality.
The e18e community focuses on optimising npm packages by replacing heavy dependencies with smaller alternatives.
Still, some of your ideas are very useful, and I may add:
- Named positional
- Nested options
But others are outside the scope of a small library like this.