yargs / yargs-parser

:muscle: the mighty option parser used by yargs
http://yargs.js.org/
ISC License
491 stars 120 forks source link

feat: support single dash as option value for long option #472

Open shadowspawn opened 1 year ago

shadowspawn commented 1 year ago

There is a popular issue against args asking about using single dash for stdin. In fact this is already implemented and tested in yargs-parser for short options and positionals, and just needed a small tweak to work with long options.

https://github.com/yargs/yargs/issues/1312

shadowspawn commented 1 year ago

(Rebased on top of main. CI broken by dependency changes unrelated to this PR: #470 and #478.)