#!/usr/bin/env python3

from sys import argv
from server import Server

class Main:
  def __init__(self, url):
    self.server = Server(url)

  def run(self):
    self.server.connect();
    command = self.server.get()
    while command is not None:
      response = command.execute()
      self.server.send(response)
      command = self.server.get()

main = Main(argv[1]);
main.run()
@@ -27,18 +27,21 @@
 om s
-ys
+erver
  import 
 argv
@@ -40,38 +40,30 @@
 ort 
-argv%0Afrom s
+S
 erver
- 
+%0A
 import 
-Server
+argparse
 %0A%0Acl
@@ -340,16 +340,176 @@
 .get()%0A%0A
+def parseCommandLine():%0A%09parser = argparse.ArgumentParser()%0A%09parser.add_argument(%22--url%22, required=True)%0A%09return parser.parse_args()%0A%0Aargs = parseCommandLine()%0A
 main = M
@@ -519,12 +519,13 @@
 (arg
-v%5B1%5D
+s.url
 );%0Am

Add command line validation