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

Commit 683e33a

Browse files
author
Je
committed
doc: update cammand help messages
1 parent 7adee1a commit 683e33a

File tree

5 files changed

+16
-14
lines changed

5 files changed

+16
-14
lines changed

cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ async function main() {
9393
}
9494

9595
// sets log level
96-
const l = argOptions.l || argOptions.log
96+
const l = argOptions.L || argOptions['log-level']
9797
if (util.isNEString(l)) {
9898
log.setLevel(l)
9999
}

cli/build.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ export const helpMessage = `
22
Usage:
33
aleph build <dir> [...options]
44
5-
<dir> represents the directory of the aleph app,
5+
<dir> represents the directory of Aleph.js app,
66
if the <dir> is empty, the current directory will be used.
77
88
Options:
9-
-r, --reload Reload source code cache
10-
-h, --help Prints help message
9+
-L, --log-level Set log level [possible values: debug, info]
10+
-r, --reload Reload source code cache
11+
-h, --help Prints help message
1112
`
1213

1314
export default async function (appDir: string, options: Record<string, string | boolean>) {

cli/dev.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ export const helpMessage = `
44
Usage:
55
aleph dev <dir> [...options]
66
7-
<dir> represents the directory of the aleph app,
7+
<dir> represents the directory of Aleph.js app,
88
if the <dir> is empty, the current directory will be used.
99
1010
Options:
11-
-p, --port A port number to start the aleph app, default is 8080
12-
-r, --reload Reload source code cache
13-
-l, --log Sets log level ['debug', 'info', 'warn', 'error', 'fatal']
14-
-h, --help Prints help message
11+
-p, --port A port number to start the Aleph.js app, default is 8080
12+
-L, --log-level Set log level [possible values: debug, info]
13+
-r, --reload Reload source code cache
14+
-h, --help Prints help message
1515
`
1616

1717
export default async function (appDir: string, options: Record<string, string | boolean>) {

cli/init.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const helpMessage = `
3434
Usage:
3535
aleph init <dir> [...options]
3636
37-
<dir> represents the directory of the aleph app,
37+
<dir> represents the directory of Aleph.js app,
3838
if the <dir> is empty, the current directory will be used.
3939
4040
Options:

cli/start.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ export const helpMessage = `
44
Usage:
55
aleph start <dir> [...options]
66
7-
<dir> represents the directory of the aleph app,
7+
<dir> represents the directory of the aleph.js app,
88
if the <dir> is empty, the current directory will be used.
99
1010
Options:
11-
-p, --port A port number to start the aleph app, default is 8080
12-
-r, --reload Reload source code cache
13-
-h, --help Prints help message
11+
-p, --port A port number to start the aleph.js app, default is 8080
12+
-L, --log-level Set log level [possible values: debug, info]
13+
-r, --reload Reload source code cache
14+
-h, --help Prints help message
1415
`
1516

1617
export default async function (appDir: string, options: Record<string, string | boolean>) {

0 commit comments

Comments
 (0)