Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Jun 30, 2015
1 parent c473cc5 commit de213ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/widget-png.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ var fs = require('fs');
var argv = {};

process.argv = process.argv.map(function(arg, i) {
if (~arg.indexOf('=')) {
if (/^--\w+=/.test(arg)) {
arg = arg.split('=');
if (/^[0-9.]+$/.test(arg[1])) arg[1] = +arg[1];
argv[arg[0].replace(/^-+/, '')] = arg[1];
argv[arg[0].replace(/^--/, '')] = arg[1];
return;
}
if (arg.indexOf('--') === 0) {
Expand Down

0 comments on commit de213ce

Please sign in to comment.