It turns out that this is a bug with the nw-builder CLI that occurs in all versions from 4.10.0 up to 4.11.4. I created an issue on GitHub, and hopefully, it will be fixed very soon.
Github Issue #1277: error: unknown option '--mode=build' #1277