Correct way to restart HASS in OSX?

I’ve seen some threads that say you can restart hass with hass --restart-osx

That flag isn’t available in the newest builds.
What is the correct way to accomplish this? Why was that removed?

$ hass --script macos restart

Was changed because of script support.

how do you stop HA in osx?

The way I stop it is run the following command once.

hass --script macos restart

If you want to restart it, then run twice the same commands

To restart hass on mac osx, create a bash file to do it

#!/bin/bash
hass --script macos restart
sleep 5
hass --script macos restart