Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Sources/SwiftJavaTool/Commands/JExtractCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ extension SwiftJava {
@OptionGroup var commonOptions: SwiftJava.CommonOptions

@Option(help: "The mode of generation to use for the output files. Used with jextract mode.")
var mode: JExtractGenerationMode = .ffm
var mode: JExtractGenerationMode?

@Option(help: "The name of the Swift module into which the resulting Swift types will be generated.")
var swiftModule: String
Expand Down Expand Up @@ -86,6 +86,11 @@ extension SwiftJava.JExtractCommand {
if let javaPackage {
config.javaPackage = javaPackage
}
if let mode {
config.mode = mode
} else if config.mode == nil {
config.mode = .ffm
}
config.swiftModule = self.effectiveSwiftModule
config.outputJavaDirectory = outputJava
config.outputSwiftDirectory = outputSwift
Expand Down