Skip to content

Commit

Permalink
fixes nodeman
Browse files Browse the repository at this point in the history
  • Loading branch information
nanha committed Mar 30, 2012
1 parent 298264c commit d03de2a
Show file tree
Hide file tree
Showing 5 changed files with 130 additions and 542 deletions.
13 changes: 13 additions & 0 deletions deps/nodeman/README.md
Expand Up @@ -31,3 +31,16 @@
![output](https://photos-1.dropbox.com/btj/4faa6d69/wrJ7qPsDFgAg78-vcNjiIR_GcUqX9rJvkD8n7y2Q7ks/ScreenShot003.jpg?size=1280x960)


사용방법
----------

![usage](https://github.com/nanha/nodeman/raw/master/images/nodeman_usage.png)

$ nodeman -h
$ nodeman -b
$ nodeman optimist





10 changes: 5 additions & 5 deletions deps/nodeman/bin/nodeman
Expand Up @@ -32,6 +32,10 @@ var usage = ''
var args = process.argv.slice(2),
moduleName;

if (!args.length) {
abort(usage);
}

while (args.length) {
var arg = args.shift();
switch (arg) {
Expand All @@ -42,6 +46,7 @@ while (args.length) {
case '-b':
case '--builtin':
nodeman.builtin();
return;
break;
default:
moduleName = arg;
Expand All @@ -52,10 +57,6 @@ while (args.length) {
}
}

if (!moduleName) {
abort(usage);
}

/**
* builtin list
*
Expand All @@ -81,7 +82,6 @@ function builtin() {
console.log();
});
}

/**
* console.error && process exit
*/
Expand Down

0 comments on commit d03de2a

Please sign in to comment.