Fix number parsing from replacer vars

This commit is contained in:
Wolvan 2022-01-08 17:42:55 +01:00
parent 74729b1e9c
commit bdf5ad1b1c

View file

@ -15,10 +15,10 @@ async function main(): Promise<void> {
["--no-frontend", "Do not start the frontend server"],
["--no-backend", "Do not start the backend server"],
["-d, --data-directory <path>", "Path to the data directory", "./data"],
["-p, --port <port>", "Port to listen on", (port: any) => parseInt(port), 6969],
["-p, --port <port>", "Port to listen on", (port: any) => parseInt(port) || port, 6969],
["--use-mysql", "Use MySQL for storage"],
["--mysql-host <host>", "MySQL host", "localhost"],
["--mysql-port <port>", "MySQL port", (port: any) => parseInt(port), 3306],
["--mysql-port <port>", "MySQL port", (port: any) => parseInt(port) || port, 3306],
["--mysql-user <user>", "MySQL user", "root"],
["--mysql-password <password>", "MySQL password", "root"],
["--mysql-database <database>", "MySQL database", "polls"],