2 /*jshint node:true, indent:2, curly:false, eqeqeq:true, immed:true,
3 latedef:true, newcap:true, noarg:true,
4 regexp:true, undef:true, strict:true, trailing:true, white:true */
7 // This file really just parses the arguments, and sends the real work
8 // off to scripts/lib/build_dictionary.js.
13 var program = require('commander'),
14 importDictionary = require("./lib/build_dictionary").importDictionary;
17 .option('-d, --database [database name]', 'Database name to import to.')
18 .option('-f, --filename [/path/to/filename]', 'Path to xTuple dictionary js file.')
21 importDictionary(program.database, program.filename, function (err, res) {
23 console.log("Import failed", err);
26 console.log("Success!");