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

Commit 2ebcf78

Browse files
Change --host to -hn and --hostname
1 parent 6428577 commit 2ebcf78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/start.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Usage:
88
if the <dir> is empty, the current directory will be used.
99
1010
Options:
11-
--host The address at which the server is to be started.
11+
-hn, --hostname The address at which the server is to be started.
1212
-p, --port A port number to start the aleph.js app, default is 8080
1313
-L, --log-level Set log level [possible values: debug, info]
1414
-r, --reload Reload source code cache
@@ -17,7 +17,7 @@ Options:
1717

1818
export default async function (appDir: string, options: Record<string, string | boolean>) {
1919
const { start } = await import('../server.ts')
20-
const host = String(options.h || options.host || 'localhost')
20+
const host = String(options.hn || options.hostname || 'localhost')
2121
const port = parseInt(String(options.p || options.port || '8080'))
2222
if (isNaN(port) || port <= 0 || !Number.isInteger(port)) {
2323
log.error(`invalid port '${options.port || options.p}'`)

0 commit comments

Comments
 (0)