Comparing version 3.0.1364 to 3.0.1365
{ | ||
"name": "c9", | ||
"description": "Cloud9 Client", | ||
"version": "3.0.1364", | ||
"version": "3.0.1365", | ||
"author": "Cloud9 <info@c9.io>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -34,6 +34,2 @@ define(function(require, exports, module) { | ||
"boolean": true | ||
}, | ||
"path" : { | ||
description: "Specify the path that will be opened", | ||
default: false | ||
} | ||
@@ -40,0 +36,0 @@ }, |
@@ -10,2 +10,5 @@ define(function(require, exports, module) { | ||
var fs = require("fs"); | ||
var resolve = require("path").resolve; | ||
var optimist; | ||
@@ -25,3 +28,3 @@ | ||
process.argv.slice(2).some(function(n){ | ||
process.argv.slice(2).some(function(n) { | ||
if (!n.match(/^[-\/]/) && n != "node") { | ||
@@ -34,2 +37,14 @@ module = n; | ||
if (!commands[module] && process.argv.length > 2) { | ||
for (var i = 2; i < process.argv.length; i++) { | ||
if (process.argv[i].charAt(0) == "-") continue; | ||
var path = resolve(process.argv[i]); | ||
if (fs.existsSync(path)) { | ||
process.argv.splice(2, 0, "open"); | ||
module = "open"; | ||
} | ||
break; | ||
} | ||
} | ||
optimist = require('optimist'); | ||
@@ -36,0 +51,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
760234
16795
93