`swift package edit` doesn't accept a `--build-path`

swift package edit modifies the build directory to update the dependencies state but it doesn't allow providing an alternative build directory via --build-path, is this intentional ?

You need to pass it to swift package: swift package —build-path /path/to/build/dir edit

Ah, makes sense, thanks!