Permalink
Browse files

[doc] Use `version` CLI option in `cli-sample`

  • Loading branch information...
1 parent a982298 commit a72758cd836169b548406666a0ca90b4e7e0c4f5 @mmalecki mmalecki committed Dec 24, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 examples/cli-sample/index.js
@@ -2,14 +2,19 @@ console.time('start');
var flatiron = require('../../lib/flatiron'),
app = flatiron.app;
+require('pkginfo')(module, 'version');
+
+app.version = exports.version;
+
app.use(flatiron.plugins.cli, {
dir: __dirname,
usage: [
'Simple app example for flatiron!',
'',
'app start - print a prompt and arguments',
'print <msg> - echo a message'
- ]
+ ],
+ version: true
});
app.cmd('app start', function () {

0 comments on commit a72758c

Please sign in to comment.