Skip to content

Commit 4bb3caf

Browse files
committed
feat: improve help messages
1 parent d9d12c9 commit 4bb3caf

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

packages/rstack/src/cli/commands.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,21 @@ declare global {
88
const helpMessage = `Rstack v${RSTACK_VERSION}
99
1010
Usage:
11-
$ rs [command] [options]
11+
$ rs [command] [...options]
1212
1313
Commands:
14-
dev [Rsbuild] Start the dev server
15-
build [Rsbuild] Build the app for production
16-
preview [Rsbuild] Preview the production build locally
17-
lib [Rslib] Build libraries
18-
test [Rstest] Run tests
19-
staged [lint-staged] Run tasks on staged files
20-
21-
For details on a sub-command, run:
14+
dev Start the app dev server
15+
build Build the app for production
16+
preview Preview the app production build locally
17+
lib Build library outputs
18+
test Run tests
19+
staged Run configured tasks on staged Git files
20+
21+
For command-specific options, run:
2222
$ rs <command> -h
2323
2424
Options:
25+
-h, --help Display this help message
2526
-v, --version Display version number`;
2627

2728
function hasConfigArg(args: string[]): boolean {

0 commit comments

Comments
 (0)