Permalink
Browse files

Allow path option to be absolute

  • Loading branch information...
1 parent 3ae3c4a commit b6d804213eab83fcfc7b723b17ff8ad9265f21aa @camshaft committed Feb 6, 2013
Showing with 3 additions and 2 deletions.
  1. +2 −1 bin/startup
  2. +1 −1 package.json
View
@@ -5,14 +5,15 @@
*/
var startup = require('commander')
+ , resolve = require('path').resolve
, join = require('path').join;
startup
.version(require(join(__dirname, "../package.json")).version);
function load(args) {
if (args.path) {
- return join(process.cwd(), args.path);
+ return resolve(process.cwd(), args.path);
}
else {
try {
View
@@ -1,6 +1,6 @@
{
"name": "startup",
- "version": "0.1.5",
+ "version": "0.1.6",
"description": "Node.js HTTP app runner",
"scripts": {
"test": "./node_modules/.bin/mocha"

0 comments on commit b6d8042

Please sign in to comment.