diff --git a/README.md b/README.md index 0946639..e994e14 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,9 @@ clean up all the inter-module references, and without a whole new --harmony Start node with --harmony flag. + --harmony-proxies + Start node with --harmony-proxies flag. + --inspect[=port] Start node with --inspect flag. diff --git a/lib/supervisor.js b/lib/supervisor.js index be6c1e1..45f9cff 100644 --- a/lib/supervisor.js +++ b/lib/supervisor.js @@ -15,6 +15,7 @@ var timestampFlag = false; var interactive = true; var log = console.log; var crash_queued = false; +var harmony_proxies = false; var harmony_default_parameters = false; var harmony_destructuring = false; @@ -30,6 +31,8 @@ function run (args) { log = function(){}; } else if (arg === "--harmony") { harmony = true; + } else if (arg === "--harmony-proxies") { + harmony_proxies = true; } else if (arg.indexOf("--inspect") > -1) { inspect = arg; } else if (arg === "--harmony_default_parameters") { @@ -117,6 +120,9 @@ function run (args) { if (harmony) { program.unshift("--harmony"); } + if (harmony_proxies) { + program.unshift("--harmony-proxies"); + } if (inspect) { program.unshift(inspect); } @@ -314,6 +320,9 @@ function help () { (" --harmony_default_parameters") (" Start node with --harmony_default_parameters flag.") ("") + (" --harmony-proxies") + (" Start node with --harmony-proxies flag.") + ("") (" -n|--no-restart-on error|exit") (" Don't automatically restart the supervised program if it ends.") (" Supervisor will wait for a change in the source files.")