|
|
@ -20,6 +20,7 @@ program |
|
|
|
.option('-d, --database <n>', 'database schema name') |
|
|
|
.option('-d, --database <n>', 'database schema name') |
|
|
|
.option('-r, --ipAddress <n>', 'IP interface of your server / locahost by default') |
|
|
|
.option('-r, --ipAddress <n>', 'IP interface of your server / locahost by default') |
|
|
|
.option('-n, --portNumber <n>', 'port number for app / 3000 by default') |
|
|
|
.option('-n, --portNumber <n>', 'port number for app / 3000 by default') |
|
|
|
|
|
|
|
.option('-o, --port <n>', 'port number for mysql / 3306 by default') |
|
|
|
.option('-s, --storageFolder <n>', 'storage folder / current working dir by default / available only with local') |
|
|
|
.option('-s, --storageFolder <n>', 'storage folder / current working dir by default / available only with local') |
|
|
|
.option('-i, --ignoreTables <n>', 'comma separated table names to ignore') |
|
|
|
.option('-i, --ignoreTables <n>', 'comma separated table names to ignore') |
|
|
|
.option('-a, --apiPrefix <n>', 'api url prefix / "/api/" by default') |
|
|
|
.option('-a, --apiPrefix <n>', 'api url prefix / "/api/" by default') |
|
|
@ -53,6 +54,7 @@ exports.handle = program => { |
|
|
|
/**************** START : default values ****************/ |
|
|
|
/**************** START : default values ****************/ |
|
|
|
program.ipAddress = program.ipAddress || 'localhost'; |
|
|
|
program.ipAddress = program.ipAddress || 'localhost'; |
|
|
|
program.portNumber = program.portNumber || 3000; |
|
|
|
program.portNumber = program.portNumber || 3000; |
|
|
|
|
|
|
|
program.port = program.port || 3306; |
|
|
|
program.user = program.user || 'root'; |
|
|
|
program.user = program.user || 'root'; |
|
|
|
program.password = program.password || ''; |
|
|
|
program.password = program.password || ''; |
|
|
|
program.host = program.host || 'localhost'; |
|
|
|
program.host = program.host || 'localhost'; |
|
|
|