sindresorhus / cpy-cli

Copy files
MIT License
344 stars 33 forks source link

[Minor] Windows Argument Escaping #9

Closed schnittstabil closed 5 years ago

schnittstabil commented 7 years ago

For Windows users the --help examples are misleading, e.g.:

C:\test>dir src
…
07.10.2016  19:07                 0 goat.png
07.10.2016  19:07                 0 unicorn.png
C:\test>cpy --help
…
  Examples
    Copy all .png files in src folder into dist except src/goat.png
    $ cpy 'src/*.png' '!src/goat.png' dist
C:\test>cpy 'src/*.png' '!src/goat.png' dist
Cannot glob `'src/*.png','!src/goat.png'`: …

NB: Double quotes work as expected:

C:\test>cpy "src/*.png" "!src/goat.png" dist
C:\test>dir dist
…
07.10.2016  19:07                 0 unicorn.png
sindresorhus commented 7 years ago

I couldn't care less about Windows, but feel free to change it if you do.

revelt commented 5 years ago

Considering nobody touched this issue or PR'ed in good two years, should we close it?