Skip to content

Commit

Permalink
fix argv support in windows cmd.exe
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollina committed Sep 3, 2018
1 parent ffd0127 commit 87759d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion autocannon.js
Expand Up @@ -2,6 +2,7 @@

'use strict'

const crossArgv = require('cross-argv')
const minimist = require('minimist')
const fs = require('fs')
const os = require('os')
Expand Down Expand Up @@ -238,5 +239,6 @@ function runTracker (argv, ondone) {
}

if (require.main === module) {
start(parseArguments(process.argv.slice(2)))
const argv = crossArgv(process.argv.slice(2))
start(parseArguments(argv))
}
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -45,6 +45,7 @@
"dependencies": {
"chalk": "^2.4.1",
"color-support": "^1.1.1",
"cross-argv": "^1.0.0",
"has-async-hooks": "^1.0.0",
"hdr-histogram-js": "^1.1.4",
"hdr-histogram-percentiles-obj": "^2.0.0",
Expand Down

0 comments on commit 87759d5

Please sign in to comment.