paf31 / purescript-yargs

PureScript bindings for the yargs command-line parsing library
MIT License
17 stars 12 forks source link

Fix rest function #12

Closed icyrockcom closed 7 years ago

icyrockcom commented 7 years ago

rest is failing because it tries to read the array, but the input is an object that has _ key for the remainder of the arguments:

> require('yargs')(['a', 'b', 'c']).argv
{ _: [ 'a', 'b', 'c' ], '$0': '' }

Also upgraded yargs dependency to the latest version.

paf31 commented 7 years ago

Thanks!