Cyberbeni
(Benedek Kozma)
1
swift build --help used to have all(/most) the available options listed but currently only lists 6 options. The zsh completion (found at /usr/share/zsh/5.8/functions/_swift) has more options but still missing some basic ones, like --disable-sandbox and --configuration.
2 Likes
I just checked and this regressed with Swift 5.5 last year, as 5.4.3 still showed them. A workaround is to run swift package --help, which still shows all the build options. Also, the latest Apr. 4 trunk snapshot shows them with your command again.
My sense is that some swift-argument-parser shuffling lost these options, and while I noticed, I never reported it. @tomerd or @NeoNacho, can we get this fixed for Swift 5.6.2?
tomerd
3
yes this was indeed already fixed in main. will follow up to pull into a 5.6 update when possible.
2 Likes
tomerd
4
1 Like
tomerd
5
https://github.com/apple/swift-package-manager/pull/4291
will see if there is an opportunity to pull this into 5.6.x
1 Like