Skip to content

[jextract/JExtractSwiftCommandPlugin] Pass extra arguments to the tool #224

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 15, 2025

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Apr 15, 2025

Pass swift package jextract arguments to JExtractSwiftTool. E.g. swift package jextract --log-level debug

Pass `swift package jextract` arguments to `JExtractSwiftTool`. E.g.
`swift package jextract --log-level debug`
Comment on lines -43 to -49
let selectedTargets: [String] =
if let last = arguments.lastIndex(where: { $0.starts(with: "-")}),
last < arguments.endIndex {
Array(arguments[..<last])
} else {
[]
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was unused.

@ktoso ktoso merged commit c8681c1 into swiftlang:main Apr 15, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants