[Groonga-commit] droonga/droonga-http-server at ddb6d0c [master] Fix a bug that int option is ignored

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Apr 7 15:45:39 JST 2014


Kouhei Sutou	2014-04-07 15:45:39 +0900 (Mon, 07 Apr 2014)

  New Revision: ddb6d0ce1218696f42f569292c340e907a5a8238
  https://github.com/droonga/droonga-http-server/commit/ddb6d0ce1218696f42f569292c340e907a5a8238

  Message:
    Fix a bug that int option is ignored

  Modified files:
    bin/droonga-http-server

  Modified: bin/droonga-http-server (+6 -2)
===================================================================
--- bin/droonga-http-server    2014-04-07 13:20:08 +0900 (0cd0c1b)
+++ bin/droonga-http-server    2014-04-07 15:45:39 +0900 (d29e55c)
@@ -9,9 +9,13 @@ var express = require('express'),
 
 var version = require('../package.json').version;
 
+intOption = function(newValue, oldValue) {
+  return parseInt(newValue);
+}
+
 options
   .version(version)
-  .option('--port <port>', 'Port number', parseInt, 13000)
+  .option('--port <port>', 'Port number', intOption, 13000)
   .option('--receive-host-name <name>',
           'Host name of the protocol adapter. ' +
             'It must be resolvable by Droonga engine.',
@@ -19,7 +23,7 @@ options
   .option('--droonga-engine-host-name <name>', 'Host name of Droonga engine',
           '127.0.0.1')
   .option('--droonga-engine-port <port>', 'Port number of Droonga engine',
-          parseInt, 24224)
+          intOption, 24224)
   .option('--default-dataset <dataset>', 'The default dataset',
           'Droonga')
   .option('--tag <tag>', 'The tag',
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index