Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 2a96a75

Browse files
author
Haz Æ 41
authored
Update dev.ts
1 parent 0ae0320 commit 2a96a75

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cli/dev.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,20 @@ Usage:
99
if the <dir> is empty, the current directory will be used.
1010
1111
Options:
12-
-h, --host A host to start the Aleph.js app, default is localhost
12+
-hn, --host A host to start the Aleph.js app, default is localhost
1313
-p, --port A port number to start the Aleph.js app, default is 8080
1414
-L, --log-level Set log level [possible values: debug, info]
1515
-r, --reload Reload source code cache
1616
-h, --help Prints help message
1717
`
1818

1919
export default async function (appDir: string, options: Record<string, string | boolean>) {
20-
const host = String(options.h || options.host || 'localhost')
20+
const host = String(options.hn || options.host || 'localhost')
2121
const port = parseInt(String(options.p || options.port || '8080'))
2222

2323
if (isNaN(port) || port <= 0 || !Number.isInteger(port)) {
2424
log.error(`invalid port '${options.port || options.p}'`)
2525
Deno.exit(1)
2626
}
27-
2827
start(appDir, host, port, true, Boolean(options.r || options.reload))
2928
}

0 commit comments

Comments
 (0)