k6 icon indicating copy to clipboard operation
k6 copied to clipboard

Warn the user that using `-i`/`-u`/`-d` will overwrite everything about their scenarios

Open mstoykov opened this issue 2 years ago • 0 comments

Feature Description

Users are sometimes confused why using -i, -u or/and -d works the way it does. This includes both why does it suddenly not use their exec function ([citation needed]) or why they don't use the env they have defined.

While there are some indications that we no longer run the same scenarios, it likely will be nice to be more explicit.

p.s. forgot about -s for stages, as I never see it used :facepalm:

Suggested Solution (optional)

On usage of any of the shortcut options - print a warning stating that this will completely overwrite the whole options.scenarios possibly somewhere in https://github.com/grafana/k6/blob/c055402af97ee7e403edeb13396a49185e304365/lib/executor/execution_config_shortcuts.go#L72

Already existing or connected issues / PRs (optional)

No response

mstoykov avatar May 12 '22 07:05 mstoykov