Skip to content

Commit

Permalink
Define default port number in the command line helper
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 15, 2012
1 parent ab13ce1 commit 790c22e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/gcs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ var commandLine = new CLI();

commandLine
.option('-p, --port <port>',
'specify port [7575]',
'specify port [' + CLI.defaultPort + ']',
Number,
7575)
CLI.defaultPort)
.option('--privilege <ip range>',
'list of IP ranges for privileged client '+
'[' + CLI.defaultPrivilegedRanges + ']',
Expand Down
3 changes: 3 additions & 0 deletions lib/command-line.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ var path = require('path');
var defaultDatabasePath =
exports.defaultDatabasePath =
CommandLineInterface.defaultDatabasePath = process.env.HOME + '/.gcs/database/gcs';
var defaultPort =
exports.defaultPort =
CommandLineInterface.defaultPort = 7575;
var defaultPrivilegedRanges =
exports.defaultPrivilegedRanges =
CommandLineInterface.defaultPrivilegedRanges = '127.0.0.0/8';
Expand Down

0 comments on commit 790c22e

Please sign in to comment.