File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ The output is shown below:
1414
1515``` bash
1616Usage:
17- $ rslib
17+ $ rslib [command] [options]
1818
1919Commands:
2020 build build the library for production (default if no command is given)
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ npx rslib -h
1414
1515``` bash
1616Usage:
17- $ rslib
17+ $ rslib [command] [options]
1818
1919Commands:
2020 build 构建用于生产环境的产物(未指定命令时默认执行)
You can’t perform that action at this time.
0 commit comments