Permalink
Browse files

Friendlier 'cakewalk -h' output.

  • Loading branch information...
1 parent 311f1a3 commit 64219385d6f8b5a720981b9124f47ae86f3207c1 @meowgorithm committed May 24, 2012
Showing with 8 additions and 2 deletions.
  1. +7 −1 bin/cakewalk
  2. +1 −1 package.json
View
@@ -5,9 +5,15 @@ var optimist = require('optimist');
var colors = require('colors');
var Cakewalker = require('../lib/cakewalk.js').Cakewalker;
+var basename = __filename.split('/').pop();
+
var argv = optimist
.wrap(76)
- .usage('Usage $0 [path]')
+
+ // Not using optimist's $0 for the commandname below because it gives
+ // us the entire path to this script (i.e. /usr/local/bin/cakewalk)
+ .usage('Usage ' + basename + ' [path]')
+
.describe('h', 'Show this help message and exit')
.alias('h', 'help')
.describe('v', 'Print version information and exit')
View
@@ -1,7 +1,7 @@
{
"name": "cakewalk",
"preferGlobal": true,
- "version": "0.1.2",
+ "version": "0.1.3",
"author": "Christian Rocha <christian.rocha@gmail.com>",
"bin": {
"cakewalk": "./bin/cakewalk"

0 comments on commit 6421938

Please sign in to comment.