Skip to content

Commit

Permalink
Merge pull request #1774 from adamgruber/master
Browse files Browse the repository at this point in the history
support escaped spaces in cli options
  • Loading branch information
Joshua Appelman committed Jul 4, 2015
2 parents 9a34057 + 9e7056d commit c27110b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ function getOptions() {

try {
var opts = fs.readFileSync(optsPath, 'utf8')
.replace(/\\\s/g, '%20')
.split(/\s/)
.filter(Boolean);
.filter(Boolean)
.map(function(value) {
return value.replace(/%20/g, ' ');
});

process.argv = process.argv
.slice(0, 2)
Expand Down

0 comments on commit c27110b

Please sign in to comment.