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?
yes this was indeed already fixed in main. will follow up to pull into a 5.6 update when possible.
2 Likes
for reference main line fix was merged in refactor CLI options by tomerd · Pull Request #4190 · apple/swift-package-manager · GitHub
1 Like
will see if there is an opportunity to pull this into 5.6.x
1 Like