Added the "archivesPath" and the "name" properties to the AppArguments protocol in the library target.

This commit is contained in:
2025-03-26 00:26:57 +01:00
parent 1f81286a8b
commit f9fc29c8da
3 changed files with 26 additions and 4 deletions
+13 -1
View File
@@ -4,9 +4,15 @@ import Logging
extension App {
struct Options: AppArguments, ParsableArguments {
// MARK: Properties
@Option(
name: .shortAndLong,
help: "A path to the location of the DocC archives in the local file system."
)
var archivesPath: String = "Resources/Archives"
@Option(
name: .shortAndLong,
help: "A hostname to bind the application to. Defaults to `127.0.0.1`."
@@ -18,6 +24,12 @@ extension App {
help: "A log level to set the logger service in the application."
)
var logLevel: Logger.Level?
@Option(
name: .shortAndLong,
help: "A name for the Hummingbird application."
)
var name: String = "Doxy"
@Option(
name: .shortAndLong,