vercel / arg

Simple argument parsing
https://npmjs.com/arg
MIT License
1.23k stars 54 forks source link

Add support for `stopEarly` when parsing args #32

Closed blakeembrey closed 5 years ago

blakeembrey commented 5 years ago

Closes https://github.com/zeit/arg/issues/31. I wasn't sure on the permissive + combined short-flag use-case though. Should it finish parsing the short flag or should it stop on the first invalid short flag? Or should "permissive" not stop early at all, even though stopEarly stops on the first positional?

Qix- commented 5 years ago

Yeah LGTM :) Thanks @blakeembrey 🎉

Qix- commented 5 years ago

Released as 4.1.0.