projects
/
mirror
/
userdir-ldap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't spit out Python love when wrong arguments are given, better
[mirror/userdir-ldap.git]
/
ud-host
diff --git
a/ud-host
b/ud-host
index
319227b
..
0fa035a
100755
(executable)
--- a/
ud-host
+++ b/
ud-host
@@
-215,7
+215,12
@@
ListMode = 0
FingerPrints = 0
Host = None
# Process options
FingerPrints = 0
Host = None
# Process options
-(options, arguments) = getopt.getopt(sys.argv[1:], "nh:a:rlf")
+try:
+ (options, arguments) = getopt.getopt(sys.argv[1:], "nh:a:rlf")
+except getopt.GetoptError, data:
+ print data
+ sys.exit(1)
+
for (switch, val) in options:
if (switch == '-h'):
Host = val;
for (switch, val) in options:
if (switch == '-h'):
Host = val;