Updated the options naming for the properties for the AppOptions type in the app target.

This commit is contained in:
Javier Cicchelli 2025-03-27 01:48:31 +01:00
parent 3a2aab242f
commit 1b91d2dc2e

View File

@ -10,35 +10,35 @@ extension Doxy {
/// A path to the location of the DocC archives in the local file system.
@Option(
name: .shortAndLong,
name: .long,
help: "A path to the location of the DocC archives in the local file system. Defaults to `Resources/Archives`."
)
var archivesPath: String = "Resources/Archives"
/// A hostname to bind the application to.
@Option(
name: .shortAndLong,
name: .long,
help: "A hostname to bind the application to. Defaults to `127.0.0.1`."
)
var hostname: String = "127.0.0.1"
/// A log level to set the logger service in the application.
@Option(
name: .shortAndLong,
name: .long,
help: "A log level to set the logger service in the application."
)
var logLevel: Logger.Level?
/// A name for the Hummingbird application.
@Option(
name: .shortAndLong,
name: .long,
help: "A name for the Hummingbird application. Defaults to `Doxy`."
)
var name: String = "Doxy"
/// A port number to bind the application to.
@Option(
name: .shortAndLong,
name: .long,
help: "A port number to bind the application to. Defaults to `8080`."
)
var port: Int = 8080