X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-utils%2Favahi-publish-service.in;h=50b1908c2660f5af9e6d90654323cad6284639c3;hb=15cbcb2d3c23c83f7ae5f009e20d5ba0eb4b3679;hp=89c1566195dd875bf527fce7c014042039209656;hpb=d76069e946b4e89c828c96340677e40f583080c9;p=catta diff --git a/avahi-utils/avahi-publish-service.in b/avahi-utils/avahi-publish-service.in index 89c1566..50b1908 100755 --- a/avahi-utils/avahi-publish-service.in +++ b/avahi-utils/avahi-publish-service.in @@ -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 = ""