mirror of
https://github.com/Wolvan/poll.horse.git
synced 2024-11-24 13:47:59 +01:00
Fix number parsing from replacer vars
This commit is contained in:
parent
74729b1e9c
commit
bdf5ad1b1c
1 changed files with 2 additions and 2 deletions
|
@ -15,10 +15,10 @@ async function main(): Promise<void> {
|
||||||
["--no-frontend", "Do not start the frontend server"],
|
["--no-frontend", "Do not start the frontend server"],
|
||||||
["--no-backend", "Do not start the backend server"],
|
["--no-backend", "Do not start the backend server"],
|
||||||
["-d, --data-directory <path>", "Path to the data directory", "./data"],
|
["-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"],
|
["--use-mysql", "Use MySQL for storage"],
|
||||||
["--mysql-host <host>", "MySQL host", "localhost"],
|
["--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-user <user>", "MySQL user", "root"],
|
||||||
["--mysql-password <password>", "MySQL password", "root"],
|
["--mysql-password <password>", "MySQL password", "root"],
|
||||||
["--mysql-database <database>", "MySQL database", "polls"],
|
["--mysql-database <database>", "MySQL database", "polls"],
|
||||||
|
|
Loading…
Reference in a new issue