Skip to content

Commit

Permalink
Remove version information
Browse files Browse the repository at this point in the history
  • Loading branch information
pvorb committed Jan 12, 2012
1 parent dfff947 commit 48695b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.
20 changes: 3 additions & 17 deletions bin/tpl
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 0 additions & 2 deletions tpl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 48695b9

Please sign in to comment.