Skip to content
Browse files

show help information if not path is given #4

  • Loading branch information...
1 parent ae715bf commit 1bd665808703d9947aa68300ff35555968d55ab9 @criso criso committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 bin/stats
View
3 bin/stats
@@ -54,6 +54,7 @@ var usage = [
/**
* Handle arguments.
*/
+args.length > 0 || args.push('-h');
var arg;
while (args.length) {
@@ -119,4 +120,4 @@ function done() {
for (var file in statistics) obj[file] = statistics[file];
}
format(obj);
-}
+}

0 comments on commit 1bd6658

Please sign in to comment.
Something went wrong with that request. Please try again.