feat: Integrates precedence with command-line options, needs documentation.
All checks were successful
CI / Ubuntu (push) Successful in 2m31s
All checks were successful
CI / Ubuntu (push) Successful in 2m31s
This commit is contained in:
@@ -173,5 +173,19 @@ struct SemVarOptions: ParsableArguments {
|
||||
)
|
||||
var customCommand: Bool = false
|
||||
|
||||
@Option(
|
||||
name: .long,
|
||||
help: """
|
||||
Set the precence to prefer version from file or strategy.
|
||||
"""
|
||||
)
|
||||
var precedence: Configuration.SemVar.Precedence?
|
||||
|
||||
@OptionGroup var preRelease: PreReleaseOptions
|
||||
}
|
||||
|
||||
extension Configuration.SemVar.Precedence: ExpressibleByArgument {
|
||||
public init?(argument: String) {
|
||||
self.init(rawValue: argument)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user