Skip to content

Commit e1b66fe

Browse files
committed
Add --runtime-args option to CLI
1 parent a86590a commit e1b66fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cli.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export async function componentizeCmd (jsSource, opts) {
1010
sourcePath: jsSource,
1111
witPath: resolve(opts.wit),
1212
worldName: opts.worldName,
13+
runtimeArgs: opts.runtimeArgs,
1314
enableAot: opts.aot,
1415
disableFeatures: opts.disable,
1516
preview2Adapter: opts.preview2Adapter,
@@ -26,6 +27,7 @@ program
2627
.argument('<js-source>', 'JS source file to build')
2728
.requiredOption('-w, --wit <path>', 'WIT path to build with')
2829
.option('-n, --world-name <name>', 'WIT world to build')
30+
.option('--runtime-args <string>', 'arguments to pass to the runtime')
2931
.option('--aot', 'enable AOT compilation')
3032
.addOption(new Option('-d, --disable <feature...>', 'disable WASI features').choices(['stdio', 'random', 'clocks', 'http']))
3133
.option('--preview2-adapter <adapter>', 'provide a custom preview2 adapter path')

0 commit comments

Comments
 (0)