Skip to content

Commit 2d0f09d

Browse files
committed
Updated syntax to new append for --variable
1 parent 50c1ee4 commit 2d0f09d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

content/en/docs/measuring/runner-switches.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ Apart from the `config.yml` some additional configuration is possible when manua
1818
* Duplicated filenames are allowed (if you want to repeat the same file(s) multiple times, consider using `--iterations`)
1919
+ Relative paths are supported, e.g. "../usage_scenario.yml"
2020
+ Wildcard characters '\*' and '?' are supported, e.g. "*.yml" (all yml files in the current directory are executed sequentially)
21-
- `--variables` A list of string key-value pairs with variables to be replaced in the [usage_scenario.yml →]({{< relref "usage-scenario" >}})
22-
+ e.g.: `--variables '__GMT_VAR_MY_VALUE_=cats are cool'`
21+
- `--variable` A key-value pair with a variable to be replaced in the [usage_scenario.yml →]({{< relref "usage-scenario" >}})
22+
+ e.g.: `--variable '__GMT_VAR_MY_VALUE_=cats are cool'`
23+
+ Can be used multiple times if more than one variable shall be submitted
2324
- `--commit-hash-folder` Use a different folder than the repository root to determine the commit hash for the run
2425
- `--user-id` Execute run as a specific user (Default: 1) - See also [User Management →]({{< relref "/docs/cluster/user-management.md" >}})
2526
- `--config-override` Override the configuration file with the passed in yml file.

content/en/docs/measuring/usage-scenario.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ The reason being that when your variable contains *YAML* control characters like
346346
A run where we want the variable to be *1* as example can be started like this:
347347

348348
```bash
349-
python3 runner.py --uri PATH_TO_SCENARIO --variables "__GMT_VAR_DURATION__=1"
349+
python3 runner.py --uri PATH_TO_SCENARIO --variable "__GMT_VAR_DURATION__=1"
350350
```
351351

352352
See more details in [Runner switches →]({{< relref "/docs/measuring/runner-switches" >}})

0 commit comments

Comments
 (0)