Commit d85743d4 authored by Amos Latteier's avatar Amos Latteier

Fixed some getopts details. Now you actually can set the uid and the monitor server port.

parent 4b85d1cb
...@@ -149,7 +149,7 @@ Options: ...@@ -149,7 +149,7 @@ Options:
m port m port
The secure monitor server port. IF this is an empty string, then the The secure monitor server port. If this is an empty string, then the
monitor server is disabled. The monitor server allows interactive monitor server is disabled. The monitor server allows interactive
Python style access to a running ZServer. To access the server see Python style access to a running ZServer. To access the server see
medusa/monitor_client.py or medusa/monitor_client_win32.py. The monitor medusa/monitor_client.py or medusa/monitor_client_win32.py. The monitor
...@@ -229,7 +229,7 @@ try: ...@@ -229,7 +229,7 @@ try:
if string.split(sys.version)[0] < '1.5.2': if string.split(sys.version)[0] < '1.5.2':
raise 'Invalid python version', string.split(sys.version)[0] raise 'Invalid python version', string.split(sys.version)[0]
opts, args = getopt.getopt(sys.argv[1:], 'hz:Z:t:a:n:d:w:f:p:2') opts, args = getopt.getopt(sys.argv[1:], 'hz:Z:t:a:d:u:w:f:p:m:2')
# Get environment variables # Get environment variables
for a in args: for a in args:
...@@ -250,6 +250,7 @@ try: ...@@ -250,6 +250,7 @@ try:
NUMBER_OF_THREADS=v NUMBER_OF_THREADS=v
elif o=='-a': IP_ADDRESS=v elif o=='-a': IP_ADDRESS=v
elif o=='-d': DNS_IP=v elif o=='-d': DNS_IP=v
elif o=='-u': UID=v
elif o=='-m': elif o=='-m':
if v: if v:
try: v=string.atoi(v) try: v=string.atoi(v)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment