Comparing version 0.1.5 to 0.1.6
@@ -569,2 +569,3 @@ /** | ||
usage = u; | ||
return cli; | ||
}; | ||
@@ -571,0 +572,0 @@ |
@@ -19,6 +19,4 @@ #!/usr/bin/env node | ||
if (options.serve) { | ||
this.debug('Serving files from ' + options.serve); | ||
middleware.push(require('creationix/static')('/', options.serve, 'index.html')); | ||
} | ||
this.debug('Serving files from ' + options.serve); | ||
middleware.push(require('creationix/static')('/', options.serve, 'index.html')); | ||
@@ -25,0 +23,0 @@ server = this.createServer(middleware).listen(options.port); |
{ "name" : "cli", | ||
"description" : "A command line opts/args parser for node", | ||
"version" : "0.1.5", | ||
"version" : "0.1.6", | ||
"homepage" : "http://github.com/chriso/cli", | ||
@@ -5,0 +5,0 @@ "keywords" : ["cli","command line","opts","parseopt","opt","args","console","argsparse","optparse","daemon"], |
@@ -14,3 +14,2 @@ **cli is a tool for rapidly building NodeJS command line apps** | ||
cli.parse({ | ||
//long_opt: [short_opt, description, value_type, default_value] | ||
log: ['l', 'Enable logging'], | ||
@@ -29,6 +28,4 @@ port: ['p', 'Listen on this port', 'number', 8080], | ||
if (options.serve) { | ||
this.debug('Serving files from ' + options.serve); | ||
middleware.push(require('creationix/static')('/', options.serve, 'index.html')); | ||
} | ||
this.debug('Serving files from ' + options.serve); | ||
middleware.push(require('creationix/static')('/', options.serve, 'index.html')); | ||
@@ -35,0 +32,0 @@ server = this.createServer(middleware).listen(options.port); |
Sorry, the diff of this file is not supported yet
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
42154
1059
135