node-windows
Advanced tools
Comparing version 0.1.9 to 0.1.10
@@ -17,7 +17,7 @@ // Handle input parameters | ||
.describe('cwd','The absolute path of the current working directory of the script to be run as a process.') | ||
.check(function(argv){ | ||
require('fs').existsSync(p.resolve(argv.d),function(exists){ | ||
return exists; | ||
}); | ||
}) | ||
// .check(function(argv){ | ||
// require('fs').existsSync(p.resolve(argv.d),function(exists){ | ||
// return exists; | ||
// }); | ||
// }) | ||
.demand('log') | ||
@@ -65,2 +65,9 @@ .alias('l','log') | ||
if (argv.d){ | ||
if (!require('fs').existsSync(p.resolve(argv.d))){ | ||
console.warn(argv.d+' not found.'); | ||
} | ||
argv.d = process.cwd(); | ||
} | ||
if (typeof argv.m === 'string'){ | ||
@@ -67,0 +74,0 @@ argv.m = parseInt(argv.m); |
{ | ||
"name": "node-windows", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"description": "Support for Windows services, event logging, UAC, and several helper methods for interacting with the OS.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
181699
1252