Permalink
Browse files

add escape -- argument for exec/spawn

  • Loading branch information...
1 parent e37b24a commit f531e19b90a3472b9ca79716adf4e2d244a3c766 @abrkn committed May 27, 2012
Showing with 6 additions and 0 deletions.
  1. +3 −0 bin/exec.js
  2. +3 −0 bin/spawn.js
View
@@ -13,6 +13,9 @@ p.on('error', function (err) {
});
p.hub(function (hub) {
+ // translate *--escaped into --escaped
+ argv._ = argv._.map(function(x) { return x.replace(/^\*--/, '--'); });
+
var opts = {
drone : argv.drone,
drones : argv.drones,
View
@@ -11,6 +11,9 @@ p.on('error', function (err) {
});
p.hub(function (hub) {
+ // translate *--escaped into --escaped
+ argv._ = argv._.map(function(x) { return x.replace(/^\*--/, '--'); });
+
var opts = {
drone : argv.drone,
drones : argv.drones,

0 comments on commit f531e19

Please sign in to comment.