[avahi] /usr/bin/avahi-publish-service usage
Sebastien Estienne
sebastien.estienne at gmail.com
Wed Aug 3 09:29:12 EST 2005
seems that something doesn't work when avahi-publish-service when no
parameters or wrong number of parameters are passed, it doesn't
display its usage
is the following the right fix?
Index: avahi-utils/avahi-publish-service.in
===================================================================
--- avahi-utils/avahi-publish-service.in (revision 211)
+++ avahi-utils/avahi-publish-service.in (working copy)
@@ -19,7 +19,7 @@
try:
opts, args = getopt.getopt(sys.argv[1:], "d:H:", ["help",
"domain=", "host="])
except getopt.GetoptError:
- usage(2)
+ pass
domain = ""
host = ""
@@ -35,8 +35,7 @@
host = a
if len(args) < 3:
- sys.stderr.write("Invalid number of arguments\n")
- sys.exit(1)
+ usage(2)
name = args[0]
stype = args[1]
--
Sebastien Estienne
More information about the avahi
mailing list