dthree / vorpal

Node's framework for interactive CLIs
http://vorpal.js.org
MIT License
5.64k stars 280 forks source link

Fix falsy value check when parsing variadic args #219

Closed postatum closed 7 years ago

postatum commented 7 years ago

Should fix #218

Currently check if (passedArg && matchArg.variadic === true) fails when first variadic argument value is 0 (zero), because it has falsy value and boolean check of passedArg fails.

dthree commented 7 years ago

Looks good, thanks. :+1: