From e84606fa1ec3f996f4638b6908fde5951cff6acf Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Sun, 9 Mar 2025 23:33:23 +0100 Subject: [PATCH] Written the help definitions for the App.Options arguments in the app target. --- App/Sources/Options/AppOptions.swift | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/App/Sources/Options/AppOptions.swift b/App/Sources/Options/AppOptions.swift index 4208ca8..edd61bf 100644 --- a/App/Sources/Options/AppOptions.swift +++ b/App/Sources/Options/AppOptions.swift @@ -7,13 +7,22 @@ extension App { // MARK: Properties - @Option(name: .shortAndLong) + @Option( + name: .shortAndLong, + help: "A hostname to bind the application to. Defaults to `127.0.0.1`." + ) var hostname: String = "127.0.0.1" - @Option(name: .shortAndLong) + @Option( + name: .shortAndLong, + help: "A log level to set the logger service in the application." + ) var logLevel: Logger.Level? - @Option(name: .shortAndLong) + @Option( + name: .shortAndLong, + help: "A port number to bind the application to. Defaults to `8080`." + ) var port: Int = 8080 }