From eaa0b315089f21d64ba5f8626ec5d0fee5c2aa24 Mon Sep 17 00:00:00 2001 From: guest271314 Date: Fri, 3 Jan 2025 20:18:36 -0800 Subject: [PATCH] Update cli.md Document --exe expects absolute path to qjs. --- docs/docs/cli.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/cli.md b/docs/docs/cli.md index 6878539cc..2ef6d11fd 100644 --- a/docs/docs/cli.md +++ b/docs/docs/cli.md @@ -66,7 +66,7 @@ $ qjs -c app.js -o app --exe qjs The resulting `app` binary will have the same runtime dependencies as the `qjs` binary. This is acomplished by compiling the target JavaScript file to bytecode and adding it a copy of the executable, with a little -trailer to help locate it. +trailer to help locate it. `--exe` expects the absolute path to `qjs`, e.g., `~/bin/qjs` or `$HOME/bin/qjs`. Rather than using the current executable, it's possible to use the `--exe` switch to create standalone executables for other platforms.