]> git.meshlink.io Git - catta/blobdiff - avahi-utils/avahi-publish-service.in
* simply compilation a little
[catta] / avahi-utils / avahi-publish-service.in
index 89c1566195dd875bf527fce7c014042039209656..50b1908c2660f5af9e6d90654323cad6284639c3 100755 (executable)
@@ -40,9 +40,9 @@ def usage(retval = 0):
     sys.exit(retval)
 
 try:
-    opts, args = getopt.getopt(sys.argv[1:], "d:H:", ["help", "domain=", "host="])
+    opts, args = getopt.getopt(sys.argv[1:], "hd:H:", ["help", "domain=", "host="])
 except getopt.GetoptError:
-    pass
+    usage(2)
 
 domain = ""
 host = ""