add version flag

This commit is contained in:
AJ ONeal 2016-10-07 15:28:46 -06:00
parent 77ede0ca59
commit 9e2b3dbaa5
1 changed files with 8 additions and 0 deletions

View File

@ -139,6 +139,14 @@ function run() {
var letsencryptHost = argv['letsencrypt-certs']; var letsencryptHost = argv['letsencrypt-certs'];
var tls = require('tls'); var tls = require('tls');
if (argv.V || argv.version || argv.v) {
if (argv.v) {
console.warn("flag -v is reserved for future use. Use -V or --version for version information.");
}
console.info('v' + require('./package.json').version);
return;
}
// letsencrypt // letsencrypt
var httpsOptions = require('localhost.daplie.com-certificates').merge({}); var httpsOptions = require('localhost.daplie.com-certificates').merge({});
var secureContext; var secureContext;