From 23210c238512307230bb62c791ff8335aab6f06f Mon Sep 17 00:00:00 2001 From: johnsmyth Date: Tue, 5 Mar 2024 15:46:34 -0600 Subject: [PATCH] update CLI docs for passing args for anonymous params (fixes #9) (#25) --- docs/run/benchmark/filtering.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/run/benchmark/filtering.md b/docs/run/benchmark/filtering.md index 4f4d698..33b9a2d 100644 --- a/docs/run/benchmark/filtering.md +++ b/docs/run/benchmark/filtering.md @@ -56,7 +56,7 @@ Unlike benchmarks, some controls may define parameters. You can pass values for powerpipe control run my_control_with_params --arg my_simple_arg='this is a string' --arg my_list_arg='["item 1","item 2"]' ``` -If the parameters are unnamed, you can pass values for them by index: +If the parameters are unnamed, you can pass values for them without specifying a name. The args will be passed to the query in order - the first `--arg` as `$1`, the second as `$2`, etc.: ```bash -powerpipe control run my_control_with_params --arg 1='this is a string' --arg 2='["item 1","item 2"]' +powerpipe control run my_control_with_params --arg 'this is a string' --arg '["item 1","item 2"]' ``` \ No newline at end of file