better error messages

This commit is contained in:
j 2013-04-28 23:11:10 +02:00
commit bd57f5b86f
2 changed files with 8 additions and 2 deletions

View file

@ -711,7 +711,7 @@ class Client(object):
def client(self, args):
if not args:
print 'you must pass url to server(i.e. http://192.168.1.1:8789)'
print 'usage: %s client <server_url>\n\ti.e. %s client http://192.168.1.1:8789' % (sys.argv[0], sys.argv[0])
sys.exit(1)
import client
url = args[0]