[Groonga-commit] groonga/gcs [master] Define default port number in the command line helper

Zurück zum Archiv-Index

SHIMODA Hiroshi null+****@clear*****
Wed Aug 15 13:43:43 JST 2012


SHIMODA Hiroshi	2012-08-15 13:43:43 +0900 (Wed, 15 Aug 2012)

  New Revision: 790c22e63d10c5df626b0700318e16c568518a2e
  https://github.com/groonga/gcs/commit/790c22e63d10c5df626b0700318e16c568518a2e

  Log:
    Define default port number in the command line helper

  Modified files:
    bin/gcs
    lib/command-line.js

  Modified: bin/gcs (+2 -2)
===================================================================
--- bin/gcs    2012-08-15 13:40:29 +0900 (18b4b50)
+++ bin/gcs    2012-08-15 13:43:43 +0900 (f0cf489)
@@ -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 + ']',

  Modified: lib/command-line.js (+3 -0)
===================================================================
--- lib/command-line.js    2012-08-15 13:40:29 +0900 (bbf166b)
+++ lib/command-line.js    2012-08-15 13:43:43 +0900 (89aab4c)
@@ -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';
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index