From 0355fb73e13418e6cd3644bfd4744264148fa653 Mon Sep 17 00:00:00 2001 From: Kononnable Date: Tue, 13 Mar 2018 21:33:52 +0100 Subject: [PATCH] #43 --- src/index.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/index.ts b/src/index.ts index b836d1a..21f3a44 100644 --- a/src/index.ts +++ b/src/index.ts @@ -110,16 +110,17 @@ switch (argv.e) { TomgUtils.LogFatalError("Database engine not recognized.", false); throw new Error("Database engine not recognized."); } +console.log(argv.s ? argv.s.toString() : standardSchema) let engine = new Engine(driver, { host: argv.h, port: parseInt(argv.p) || standardPort, - databaseName: argv.d.toString(), - user: argv.u.toString(), - password: argv.x.toString(), + databaseName: argv.d ? argv.d.toString() : null, + user: argv.u ? argv.u.toString() : null, + password: argv.x ? argv.x.toString() : null, databaseType: argv.e, - resultsPath: argv.o.toString(), - schemaName: argv.s.toString() || standardSchema, + resultsPath: argv.o ? argv.o.toString() : null, + schemaName: argv.s ? argv.s.toString() : standardSchema, ssl: argv.ssl, noConfigs: argv.noConfig, convertCaseFile: argv.cf,