Skip to content

Commit

Permalink
Add version information
Browse files Browse the repository at this point in the history
  • Loading branch information
prozanne committed Jun 16, 2020
1 parent 408bbe7 commit a66cd25
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

const commander = require('commander');
const program = new commander.Command();
const package = require('../package.json');

const util = require('./util.js');

Expand All @@ -12,8 +13,10 @@ process.on('SIGINT', () => {
util.exit();
});

program.option('-i, --init', 'Create a wits config file for running Wits');
program.option('-s, --start', 'Start and Use Wits service');
program.version(`wits v${package.version}`);
program.option('-V, --version', 'WITs version');
program.option('-i, --init', 'Create a config file for running WITs');
program.option('-s, --start', 'Start and Use WITs service');
program.option('-w, --watch', 'Watch project for live reloading');

program.parse(process.argv);
Expand Down

0 comments on commit a66cd25

Please sign in to comment.