Skip to content

Commit

Permalink
you can request abe version with -v
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorybesson committed Oct 10, 2016
1 parent 6a6613b commit 1825120
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import clc from 'cli-color'

program
.version(pkg.version)
.option('-v, --version', 'version')
.option('-p, --port <port>', 'Port on which to listen to (defaults to 8000)', parseInt)
.option('-i, --interactive', 'open in browser')
.option('-N, --pname <pname>', 'pm2 server name')
Expand All @@ -29,6 +30,11 @@ var port = program.port
var interactive = program.interactive
var webport = program.webport || 8081

var vPos = process.argv.indexOf('-v')
if (vPos > -1) {
process.argv[vPos] = '-V'
}

function addPlugin(dir, plugin) {
var p = new Promise((resolve) => {

Expand Down

0 comments on commit 1825120

Please sign in to comment.