Permalink
Browse files

clean up sensei shell

  • Loading branch information...
1 parent 547842c commit 69aebc9eb25f436fa8425c9bfaa239df426393e1 @javasoze javasoze committed Nov 9, 2011
Showing with 5 additions and 1 deletion.
  1. +2 −1 bin/sensei-shell.sh
  2. +3 −0 clients/python/src/sensei_client.py
View
@@ -3,4 +3,5 @@
bin=`dirname "$0"`
bin=`cd "$bin"; pwd`
-python $bin/../clients/python/src/sensei_client.py
+python $bin/../clients/python/src/sensei_client.py $1 $2
+
@@ -1526,6 +1526,7 @@ def getSystemInfo(self):
return res
def main(argv):
+ print "Welcome to Sensei Shell"
from optparse import OptionParser
usage = "usage: %prog [options]"
parser = OptionParser(usage=usage)
@@ -1547,10 +1548,12 @@ def main(argv):
if len(args) <= 1:
client = SenseiClient()
+ print "using default host=localhsot, port=8080"
else:
host = args[0]
port = int(args[1])
logger.debug("Url specified, host: %s, port: %d" % (host,port))
+ print "Url specified, host: %s, port: %d" % (host,port)
client = SenseiClient(host, port, 'sensei')
import readline

0 comments on commit 69aebc9

Please sign in to comment.