Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/core/src/cli/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,13 @@ export function setupCommands(): void {
sections.shift();

for (const section of sections) {
if (section.title === 'Usage') {
section.body = section.body.replace(
'$ rsbuild',
color.yellow(`$ rsbuild [command] [options]`),
);
}

// Fix the dev command name
if (section.title === 'Commands') {
section.body = section.body.replace(
Expand Down
2 changes: 1 addition & 1 deletion website/docs/en/guide/basic/cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The output is shown below:

```
Usage:
$ rsbuild <command> [options]
$ rsbuild [command] [options]

Commands:
dev Start the dev server
Expand Down
2 changes: 1 addition & 1 deletion website/docs/zh/guide/basic/cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ npx rsbuild -h

```
Usage:
$ rsbuild <command> [options]
$ rsbuild [command] [options]

Commands:
dev Start the dev server
Expand Down
Loading