cjpatoilo / rasper

Node.js parse argument options make ease.

Home Page:https://cjpatoilo.com/rasper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Default arguments containing the file path execution

zce opened this issue · comments

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