Commit b12e02da authored by Grégory Wisniewski's avatar Grégory Wisniewski

Update neoctl application according to previous commit.

git-svn-id: 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent db6fcb9b
......@@ -20,8 +20,8 @@
from optparse import OptionParser
from import Application
from neo import buildFormatString
import logging
from neo import setupLog
parser = OptionParser()
parser.add_option('-v', '--verbose', action = 'store_true',
help = 'print verbose messages')
......@@ -31,18 +31,13 @@ parser.add_option('-i', '--ip', help = 'specify the ip of admin node')
parser.add_option('--handler', help = 'specify the connection handler')
(options, args) = parser.parse_args()
port = options.port or 5555
ip = options.ip or ''
handler = options.handler or "SocketConnector"
format = buildFormatString('neoctl')
if options.verbose:
logging.basicConfig(level=logging.DEBUG, format=format)
logging.basicConfig(level=logging.INFO, format=format)
setupLog('NEOCTL', options.verbose)
from import Application
app = Application(ip, port, handler)
print app.execute(args)
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