Updated the options naming for the properties for the AppOptions type in the app target.
This commit is contained in:
parent
3a2aab242f
commit
1b91d2dc2e
@ -10,35 +10,35 @@ extension Doxy {
|
|||||||
|
|
||||||
/// A path to the location of the DocC archives in the local file system.
|
/// A path to the location of the DocC archives in the local file system.
|
||||||
@Option(
|
@Option(
|
||||||
name: .shortAndLong,
|
name: .long,
|
||||||
help: "A path to the location of the DocC archives in the local file system. Defaults to `Resources/Archives`."
|
help: "A path to the location of the DocC archives in the local file system. Defaults to `Resources/Archives`."
|
||||||
)
|
)
|
||||||
var archivesPath: String = "Resources/Archives"
|
var archivesPath: String = "Resources/Archives"
|
||||||
|
|
||||||
/// A hostname to bind the application to.
|
/// A hostname to bind the application to.
|
||||||
@Option(
|
@Option(
|
||||||
name: .shortAndLong,
|
name: .long,
|
||||||
help: "A hostname to bind the application to. Defaults to `127.0.0.1`."
|
help: "A hostname to bind the application to. Defaults to `127.0.0.1`."
|
||||||
)
|
)
|
||||||
var hostname: String = "127.0.0.1"
|
var hostname: String = "127.0.0.1"
|
||||||
|
|
||||||
/// A log level to set the logger service in the application.
|
/// A log level to set the logger service in the application.
|
||||||
@Option(
|
@Option(
|
||||||
name: .shortAndLong,
|
name: .long,
|
||||||
help: "A log level to set the logger service in the application."
|
help: "A log level to set the logger service in the application."
|
||||||
)
|
)
|
||||||
var logLevel: Logger.Level?
|
var logLevel: Logger.Level?
|
||||||
|
|
||||||
/// A name for the Hummingbird application.
|
/// A name for the Hummingbird application.
|
||||||
@Option(
|
@Option(
|
||||||
name: .shortAndLong,
|
name: .long,
|
||||||
help: "A name for the Hummingbird application. Defaults to `Doxy`."
|
help: "A name for the Hummingbird application. Defaults to `Doxy`."
|
||||||
)
|
)
|
||||||
var name: String = "Doxy"
|
var name: String = "Doxy"
|
||||||
|
|
||||||
/// A port number to bind the application to.
|
/// A port number to bind the application to.
|
||||||
@Option(
|
@Option(
|
||||||
name: .shortAndLong,
|
name: .long,
|
||||||
help: "A port number to bind the application to. Defaults to `8080`."
|
help: "A port number to bind the application to. Defaults to `8080`."
|
||||||
)
|
)
|
||||||
var port: Int = 8080
|
var port: Int = 8080
|
||||||
|
Loading…
x
Reference in New Issue
Block a user