import Foundation setvbuf(stdout, nil, _IOLBF, 0) // swift run -c release --package-path spikes/bending [case] let cases: [(String, () throws -> Void)] = [ ("mesh", meshCase), ("crane", craneCase), ("stages", craneStagesCase), ("pop", popCase), ("sampan", sampanCase), ("sampanpath", sampanPathCase), ("sampanbend", sampanBendCase), ] let only = CommandLine.arguments.dropFirst().first for (name, run) in cases where only == nil || only == name { try run() }