Permalink
Browse files

Remove version information

  • Loading branch information...
pvorb committed Jan 12, 2012
1 parent dfff947 commit 48695b9c826c28372dd1a24a52b0bb47f8f4f55d
Showing with 3 additions and 19 deletions.
  1. +3 −17 bin/tpl
  2. +0 −2 tpl.js
View
20 bin/tpl
@@ -1,26 +1,12 @@
#!/usr/bin/env node
var optimist = require('optimist')
- .usage('Usage:\n'
- + 'tpl [options] [file]\n'
- + 'tpl [-v|--version]\n'
- + 'tpl [-h|--help]')
- .options('v', {
- alias: 'version',
- describe: 'Show the version of this script'
- })
- .options('h', {
- alias: 'help',
- describe: 'This message'
- });
+ .usage(' tpl [options] [file] Apply a template to a file\n'
+ + ' tpl [-h|--help] Show help');
var argv = optimist.argv;
-// Show version
-if (argv.v) {
- console.log(require('tpl').version);
-}
// Show help
-else if (argv.h) {
+if (argv.h) {
console.log(optimist.help());
}
// Show help
View
2 tpl.js
@@ -2,8 +2,6 @@
// (c) 2011 Paul Vorbach. Licensed under MIT.
;(function() {
-module.exports.version = 'v0.1.1';
-
var fs = require('fs');
var path = require('path');
var confdir = require('confdir');

0 comments on commit 48695b9

Please sign in to comment.