shelljs / shx

Portable Shell Commands for Node
MIT License
1.72k stars 44 forks source link

fails when passing arguments separately #203

Open its-dibo opened 2 years ago

its-dibo commented 2 years ago

when I run shx rm -f -r dir it fails with the error path is a directory but when I run the exactly same command but putting arguments together it success shx rm -fr dir

the command works without shx rm -f -r dir

tested on linux

nfischer commented 2 years ago

This is currently unsupported in shelljs and shx. You'll need to pass options in a single string (as you've discovered).

its-dibo commented 2 years ago

please at least update your docs to refer this issue