NewsBlur/node/node_modules/supervisor/lib/cli-wrapper.js
2012-01-02 18:22:06 -08:00

13 lines
295 B
JavaScript
Executable file

#!/usr/bin/env node
var path = require("path")
, args = process.argv.slice(1)
var arg, base;
do arg = args.shift();
while ( arg !== __filename
&& (base = path.basename(arg)) !== "node-supervisor"
&& base !== "supervisor"
&& base !== "supervisor.js"
)
require("./supervisor").run(args)