diff --git a/Sources/Rester/main.swift b/Sources/Rester/main.swift index c9bb4c7..f40215b 100644 --- a/Sources/Rester/main.swift +++ b/Sources/Rester/main.swift @@ -1,3 +1,3 @@ import ResterCore -main.run(ResterVersion) +app.run(ResterVersion) diff --git a/Sources/ResterCore/Run.swift b/Sources/ResterCore/App.swift similarity index 99% rename from Sources/ResterCore/Run.swift rename to Sources/ResterCore/App.swift index 91d2a74..4ca19a7 100644 --- a/Sources/ResterCore/Run.swift +++ b/Sources/ResterCore/App.swift @@ -42,7 +42,7 @@ func after(name: Request.Name, response: Response, result: ValidationResult) -> } -public let main = command( +public let app = command( Flag("verbose", flag: "v", description: "Verbose output"), Option("workdir", default: "", flag: "w", description: "Working directory (for the purpose of resolving relative paths in Restfiles)"), Option("timeout", default: 10, flag: "t", description: "Request timeout"),