Skip to content

Commit

Permalink
wip: feat grafana#1049
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Mirić committed Sep 25, 2019
1 parent 19c6796 commit 5e437b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ var (
runType = os.Getenv("K6_TYPE")
runNoSetup = os.Getenv("K6_NO_SETUP") != ""
runNoTeardown = os.Getenv("K6_NO_TEARDOWN") != ""
runCompatMode = os.Getenv("K6_COMPATIBILITY_MODE")
)

// runCmd represents the run command.
Expand Down Expand Up @@ -485,6 +486,8 @@ func runCmdFlagSet() *pflag.FlagSet {
// variables will affect the usage message
// - and finally, global variables are not very testable... :/
flags.StringVarP(&runType, "type", "t", runType, "override file `type`, \"js\" or \"archive\"")
flags.StringVar(&runCompatMode, "compatibility-mode", "es6",
"JavaScript compiler compatibility mode, \"es6\" or \"es51\" (default \"es6\")")
flags.Lookup("type").DefValue = ""
flags.BoolVar(&runNoSetup, "no-setup", runNoSetup, "don't run setup()")
falseStr := "false" // avoiding goconst warnings...
Expand Down

0 comments on commit 5e437b1

Please sign in to comment.