Skip to content

process.argv behaves differently to nodejs #1752

@chrislloyd

Description

@chrislloyd

In a file (both valid coffee script and vanilla JS):

console.log(process.argv)

then call with:

$ node argv.js -myargs
[ 'node', '/Users/Chris/Desktop/argv.js', '-myargs' ]

and

$ coffee argv.js -myargs
[ 'coffee',
  '/Users/Chris/Desktop/argv.js',
  '-m',
  '-y',
  '-a',
  '-r',
  '-g',
  '-s' ]

CoffeScript still interprets flags after the script name.

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions