Default arguments containing the file path execution
zce opened this issue · comments
Lei commented
Steps to reproduce
$ yarn global add banner-cli
$ banner-cli dist/*.css
# => { _:
# [ '/Users/zce/.config/yarn/bin/banner-cli',
# 'dist/zce-design.css' ] }
Expected behavior
process.argv.slice(1)
// => [ <execution file path>, ...other args ]
Actual behavior
process.argv.slice(2)
System configuration
- Node version: v10.13.0
- npm version: v6.4.1
- yarn version: v1.12.1