import ArgumentParser import DoxyLibrary 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`." ) var hostname: String = "127.0.0.1" @Option( name: .shortAndLong, 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, help: "A port number to bind the application to. Defaults to `8080`." ) var port: Int = 8080 } }