Browse Source

Better error message when osx script is invoked without an argument

svn:r4190
Nick Mathewson 20 years ago
parent
commit
dcc1b8a838
1 changed files with 5 additions and 0 deletions
  1. 5 0
      contrib/osx/Tor

+ 5 - 0
contrib/osx/Tor

@@ -56,4 +56,9 @@ StopService ()
 
 RestartService () { StopService; StartService; }
 
+if [ "x$1" = x ]; then
+  echo "Syntax: tor {start|stop}
+  exit 1
+fi 
+
 RunService "$1"