diff --git a/homeassistant/__main__.py b/homeassistant/__main__.py index 428845031a5..e97ed0c6386 100644 --- a/homeassistant/__main__.py +++ b/homeassistant/__main__.py @@ -103,6 +103,10 @@ def get_arguments(): '--uninstall-osx', action='store_true', help='Uninstalls from OS X.') + parser.add_argument( + '--restart-osx', + action='store_true', + help='Restarts on OS X.') if os.name != "nt": parser.add_argument( '--daemon', @@ -216,6 +220,10 @@ def main(): if args.uninstall_osx: uninstall_osx() return + if args.restart_osx: + uninstall_osx() + install_osx() + return # daemon functions if args.pid_file: