[Groonga-commit] groonga/gcs [master] Load manifest file only one time

Back to archive index

null+****@clear***** null+****@clear*****
2012年 8月 6日 (月) 17:04:00 JST


SHIMODA Hiroshi	2012-08-06 17:04:00 +0900 (Mon, 06 Aug 2012)

  New Revision: 838be80e941e1152af26f4586c7ae298be43a18c
  https://github.com/groonga/gcs/commit/838be80e941e1152af26f4586c7ae298be43a18c

  Log:
    Load manifest file only one time

  Modified files:
    lib/command-line.js

  Modified: lib/command-line.js (+2 -1)
===================================================================
--- lib/command-line.js    2012-08-06 16:58:56 +0900 (58400d8)
+++ lib/command-line.js    2012-08-06 17:04:00 +0900 (cd1ba43)
@@ -1,6 +1,7 @@
 var program = require('commander');
 var nroonga = require('./wrapped-nroonga');
 var Domain = require('./database/domain').Domain;
+var version = require('../package').version;
 
 var defaultDatabasePath =
       exports.defaultDatabasePath =
@@ -12,7 +13,7 @@ var defaultPrivilegedRanges =
 function CommandLineInterface() {
   this.program = program;
   this.program.
-      .version(require('../package').version)
+      .version(version)
       .option('--database-path <path>',
               'database path [' + defaultDatabasePath + ']',
               String,
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
下載 



Groonga-commit メーリングリストの案内
Back to archive index