
import giles.server

server = giles.server.Server()
server.instantiate()
server.loop()


import giles.server
import sys

server = giles.server.Server()

if len(sys.argv) == 2:
   port = int(sys.argv[1])
else:
   port = 9435
server.instantiate(port)
server.loop()

Support choosing a port on the command line.
Support choosing a port on the command line.

Just put a number as the only CLI for now.  Useful for me testing
changes now that I'm actually keeping the server running.

  
  import giles.server
+ import sys
  
  server = giles.server.Server()
+ 
+ if len(sys.argv) == 2:
+    port = int(sys.argv[1])
+ else:
+    port = 9435
- server.instantiate()
+ server.instantiate(port)
  server.loop()
  
Support choosing a port on the command line.
## Code Before:

import giles.server

server = giles.server.Server()
server.instantiate()
server.loop()

## Instruction:
Support choosing a port on the command line.
## Code After:

import giles.server
import sys

server = giles.server.Server()

if len(sys.argv) == 2:
   port = int(sys.argv[1])
else:
   port = 9435
server.instantiate(port)
server.loop()
