I was trying to build Yarn Switch in a sandboxed environment (Nix in case that matters), and it fails the version check:
$ yarn --version
Error: Missing home folder
› yarn […ARGSN]
$ yarn --help
Error: Missing home folder
› yarn […ARGSN]
IMO it would make sense for yarn --version to give version numbers for both Yarn Switch, and if available the local yarn. Alternatively, there could be some env variable to let the user chose if it wants the Yarn Switch version rather than the Yarn one.