From 78c0b9cf143f8ffdd0e6fc530da8ed5a3a7b8895 Mon Sep 17 00:00:00 2001 From: Kononnable Date: Sat, 10 Mar 2018 01:37:04 +0100 Subject: [PATCH] forcing CLI parameters to be parsed as strings closes #43 --- src/index.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/index.ts b/src/index.ts index f10e48f..b836d1a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -114,12 +114,12 @@ switch (argv.e) { let engine = new Engine(driver, { host: argv.h, port: parseInt(argv.p) || standardPort, - databaseName: argv.d, - user: argv.u, - password: argv.x, + databaseName: argv.d.toString(), + user: argv.u.toString(), + password: argv.x.toString(), databaseType: argv.e, - resultsPath: argv.o, - schemaName: argv.s || standardSchema, + resultsPath: argv.o.toString(), + schemaName: argv.s.toString() || standardSchema, ssl: argv.ssl, noConfigs: argv.noConfig, convertCaseFile: argv.cf,