Skip to content

Commit 782b64b

Browse files
authored
fix: sidecar arguments documentation not mentioning true and false values (#3363)
1 parent 3a5f6f2 commit 782b64b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/develop/sidecar.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ The string provided to `Command.sidecar` must match one of the strings defined i
171171

172172
You can pass arguments to Sidecar commands just like you would for running normal [Command][std::process::Command].
173173

174-
Arguments can be either **static** (e.g. `-o` or `serve`) or **dynamic** (e.g. `<file_path>` or `localhost:<PORT>`). You define the arguments in the exact order in which you'd call them. Static arguments are defined as-is, while dynamic arguments can be defined using a regular expression.
174+
Arguments can be either **static** (e.g. `-o` or `serve`) or **dynamic** (e.g. `<file_path>` or `localhost:<PORT>`). A value of `true` will allow any arguments to be passed to the command. `false` will disable all arguments. If neither `true` or `false` is set, you define the arguments in the exact order in which you'd call them. Static arguments are defined as-is, while dynamic arguments can be defined using a regular expression.
175175

176176
First, define the arguments that need to be passed to the sidecar command in `src-tauri/capabilities/default.json`:
177177

0 commit comments

Comments
 (0)