summary refs log tree commit diff stats
path: root/compiler/service.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/service.nim')
-rw-r--r--compiler/service.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/service.nim b/compiler/service.nim
index f6c2720a7..23a9bda66 100644
--- a/compiler/service.nim
+++ b/compiler/service.nim
@@ -19,11 +19,10 @@ import
 # repeated CRC calculations may turn out to be too slow.
 
 var 
-  arguments: string = ""      # the arguments to be passed to the program that
+  arguments*: string = ""     # the arguments to be passed to the program that
                               # should be run
 
-proc ProcessCmdLine(pass: TCmdLinePass, cmd: string) = 
-  # XXX remove duplication with nimrod.nim
+proc ProcessCmdLine*(pass: TCmdLinePass, cmd: string) =
   var p = parseopt.initOptParser(cmd)
   var argsCount = 0
   while true: 
@@ -69,3 +68,4 @@ proc serve*(action: proc (){.nimcall.}) =
     processCmdLine(passCmd2, inp.string)
     action()
     stdoutSocket.send("\c\L")
+    stdoutSocket.close()