Skip to content

Commit 000fa7a

Browse files
Add language-mode option with alias to swift-version
1 parent 4efb210 commit 000fa7a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

include/swift/Option/Options.td

+7
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,13 @@ def swift_version : Separate<["-"], "swift-version">,
286286
HelpText<"Interpret input according to a specific Swift language version number">,
287287
MetaVarName<"<vers>">;
288288

289+
def language_mode : Separate<["-"], "language-mode">,
290+
Flags<[FrontendOption, ModuleInterfaceOption, SwiftSymbolGraphExtractOption,
291+
SwiftAPIDigesterOption]>,
292+
HelpText<"Interpret input according to a specific Swift language mode">,
293+
MetaVarName<"<mode>">,
294+
Alias<swift_version>;
295+
289296
def package_description_version: Separate<["-"], "package-description-version">,
290297
Flags<[FrontendOption, HelpHidden, ModuleInterfaceOption]>,
291298
HelpText<"The version number to be applied on the input for the PackageDescription availability kind">,

0 commit comments

Comments
 (0)