 
 public func main() {
   do {
-    var config = try TestConfig()
+    let config = try TestConfig(registeredBenchmarks)
     switch (config.action) {
     case let .help(validOptions):
       print("Valid options:")

        print("    \(v)")
      }
    case .listTests:
      config.findTestsToRun()
      print("#\(config.delim)Test\(config.delim)[Tags]")
      for (index, t) in config.tests {
      let testDescription = [String(index), t.name, t.tags.sorted().description]

  let afterRunSleep: Int?

  /// The list of tests to run.
  let tests: [(index: String, info: BenchmarkInfo)]

  let action: TestAction

  init(_ registeredBenchmarks: [BenchmarkInfo]) throws {

    struct PartialTestConfig {
      var delim: String?
      var tags, skipTags: Set<BenchmarkCategory>?
      var iterationScale, numSamples, afterRunSleep: Int?
      var fixedNumIters: UInt?
      var verbose: Bool?
      var action: TestAction?
      var filters: [String]?
    }
    var c = PartialTestConfig()

