Skip to content

Commit

Permalink
support escaped spaces in cli options
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgruber committed Jul 4, 2015
1 parent 9a34057 commit 9e7056d
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 9e7056d

Please sign in to comment.