Skip to content

Commit bb4ea85

Browse files
committed
chore: update
1 parent c29ad6a commit bb4ea85

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

packages/core/src/cli/commands.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,14 @@ export function runCli(): void {
209209
sections.shift();
210210

211211
for (const section of sections) {
212+
// Fix the command usage
213+
if (section.title === 'Usage') {
214+
section.body = section.body.replace(
215+
'$ rslib',
216+
color.yellow('$ rslib [command] [options]'),
217+
);
218+
}
219+
212220
// Fix the build command name
213221
if (section.title === 'Commands') {
214222
section.body = section.body.replace(

website/docs/en/guide/basic/cli.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The output is shown below:
1414

1515
```bash
1616
Usage:
17-
$ rslib
17+
$ rslib [command] [options]
1818

1919
Commands:
2020
build build the library for production (default if no command is given)

website/docs/zh/guide/basic/cli.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ npx rslib -h
1414

1515
```bash
1616
Usage:
17-
$ rslib
17+
$ rslib [command] [options]
1818

1919
Commands:
2020
build 构建用于生产环境的产物(未指定命令时默认执行)

0 commit comments

Comments
 (0)