mirror of
https://github.com/theoludwig/theoludwig.git
synced 2026-10-25 18:10:44 +01:00
build(deps): update latest
This commit is contained in:
34 files changed
+2927
-2909
No files matched your search
@@ -17,7 +17,7 @@ const args = util.parseArgs({
|
||||
const host = args.values.host
|
||||
const basePath = args.values.path
|
||||
|
||||
const port = Number.parseInt(args.values.port, 10)
|
||||
const port = Math.trunc(Number(args.values.port))
|
||||
if (Number.isNaN(port)) {
|
||||
console.error("Error: Invalid port number.")
|
||||
process.exit(1)
|
||||
|
||||
Reference in new issue
Block a user