We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 208594a commit 8f9fa6fCopy full SHA for 8f9fa6f
Tests/ArgumentParserUnitTests/HelpGenerationTests.swift
@@ -135,15 +135,15 @@ extension HelpGenerationTests {
135
136
enum OptionFlags: String, EnumerableFlag { case optional, required }
137
enum Degree {
138
- case bachelor, master, doctor
+ case bachelor, graduate, doctorate
139
static func degreeTransform(_ string: String) throws -> Degree {
140
switch string {
141
case "bachelor":
142
return .bachelor
143
- case "master":
144
- return .master
145
- case "doctor":
146
- return .doctor
+ case "graduate":
+ return .graduate
+ case "doctorate":
+ return .doctorate
147
default:
148
throw ValidationError("Not a valid string for 'Degree'")
149
}
0 commit comments