package main

import (
    "flag"

    "github.com/datamaglia/gimbal/spinner"
)

var filename = flag.String("f", "", "Read the config from a file")

func main() {
    flag.Parse()

    config := spinner.LoadJsonConfig(*filename)
    spinner.ExecuteTestConfig(config)
}

package main

import (
    "github.com/datamaglia/gimbal/spinner"
)

func main() {
    config := spinner.LoadJsonConfig("test.json")
    spinner.ExecuteTestConfig(config)
}

--- 
+++ 
@@ -1,10 +1,16 @@
 package main
 
 import (
+    "flag"
+
     "github.com/datamaglia/gimbal/spinner"
 )
 
+var filename = flag.String("f", "", "Read the config from a file")
+
 func main() {
-    config := spinner.LoadJsonConfig("test.json")
+    flag.Parse()
+
+    config := spinner.LoadJsonConfig(*filename)
     spinner.ExecuteTestConfig(config)
 }
Set input file from the command line.
