Skip to content

Commit 0cf419d

Browse files
committed
add dump subcommand
1 parent 3eb0400 commit 0cf419d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

rescript

+10-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ Subcommands:
183183
184184
Run \`rescript <subcommand> -h\` for subcommand help. Examples:
185185
rescript build -h
186-
rescript format -h`);
186+
rescript format -h
187+
The default \`rescript\` is equivalent to \`rescript build\` subcommand
188+
`);
187189
}
188190

189191
var maybe_subcommand = process_argv[2];
@@ -243,6 +245,13 @@ if (
243245
bsc_exe
244246
);
245247
break;
248+
case "dump":
249+
require("./scripts/rescript_dump.js").main(
250+
process.argv.slice(3),
251+
rescript_exe,
252+
bsc_exe
253+
);
254+
break;
246255
case "convert":
247256
// Todo
248257
require("./scripts/rescript_convert.js").main(

0 commit comments

Comments
 (0)