Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

Commit

Permalink
Merge pull request #130 from jperasmus/feature/show-server-version
Browse files Browse the repository at this point in the history
feat: Add `--version` cli option
  • Loading branch information
urish committed Aug 29, 2018
2 parents 10dc0e4 + 1e08d25 commit 48406a5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/firebase-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ const fs = require('fs');
const path = require('path');
const cli = require('cli');
const debug = require('debug');
const pkg = require('../package.json');

cli.enable('version');
cli.setApp(pkg.name, pkg.version);

cli.parse({
rest: ['e', 'Enable REST HTTP API'],
Expand All @@ -19,7 +23,8 @@ cli.parse({
data: ['d', 'JSON data to bootstrap the server with', 'string', '{}'],
file: ['f', 'JSON file to bootstrap the server with', 'file'],
rules: ['r', 'JSON file with security rules to load', 'file'],
secret: ['s', 'Shared client auth token secret', 'string']
secret: ['s', 'Shared client auth token secret', 'string'],
version: [false, 'Output the version number'],
});

cli.main(function (args, options) { // eslint-disable-line max-statements,complexity
Expand Down

0 comments on commit 48406a5

Please sign in to comment.