resgen.swift/Sources/ResgenSwift/Generate/GenerateOptions.swift
Thibaut Schmitt 756de4f1de
All checks were successful
gitea-openium/resgen.swift/pipeline/head This commit looks good
feat(RES-34): Fix plist font filename (#14)
Reviewed-on: #14
2025-05-05 09:53:05 +02:00

28 lines
693 B
Swift

//
// GenerateOptions.swift
//
//
// Created by Thibaut Schmitt on 30/08/2022.
//
import ArgumentParser
import Foundation
struct GenerateOptions: ParsableArguments {
@Flag(name: [.customShort("f"), .customShort("F")], help: "Should force generation")
var forceGeneration = false
@Argument(help: "Configuration file.", transform: { $0.replaceTiltWithHomeDirectoryPath() })
var configurationFile: String
@Option(help: "Project directory. It will be added to every relative path (path that does not start with `/`",
transform: {
if $0.last == "/" {
return $0
}
return $0 + "/"
})
var projectDirectory: String
}