summary refs log tree commit diff stats
path: root/rod/nimrod.nim
diff options
context:
space:
mode:
authorrumpf_a@web.de <>2010-01-24 10:53:51 +0100
committerrumpf_a@web.de <>2010-01-24 10:53:51 +0100
commit6bbed25d14c674837c40e761753e2bf6e26b1db2 (patch)
tree1f6c12d8e3087c57eb04bc701f0b8503be143822 /rod/nimrod.nim
parent70465b5f06ab3d0b9e7ebb4d0414add0eacb7189 (diff)
downloadNim-6bbed25d14c674837c40e761753e2bf6e26b1db2.tar.gz
pas2nim compiles; testing will be done later
Diffstat (limited to 'rod/nimrod.nim')
-rwxr-xr-xrod/nimrod.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/rod/nimrod.nim b/rod/nimrod.nim
index b5ed532c9..8f83aa5cd 100755
--- a/rod/nimrod.nim
+++ b/rod/nimrod.nim
@@ -1,7 +1,7 @@
 #
 #
 #           The Nimrod Compiler
-#        (c) Copyright 2009 Andreas Rumpf
+#        (c) Copyright 2010 Andreas Rumpf
 #
 #    See the file "copying.txt", included in this
 #    distribution, for details about the copyright.
@@ -17,7 +17,7 @@ var
   cmdLineInfo: TLineInfo
 
 proc ProcessCmdLine(pass: TCmdLinePass, command, filename: var string) = 
-  var p = parseopt.init()
+  var p = parseopt.initOptParser()
   while true: 
     parseopt.next(p)
     case p.kind
@@ -40,7 +40,7 @@ proc ProcessCmdLine(pass: TCmdLinePass, command, filename: var string) =
         filename = unixToNativePath(p.key) # BUGFIX for portable build scripts
         break 
   if pass == passCmd2: 
-    arguments = getRestOfCommandLine(p)
+    arguments = cmdLineRest(p)
     if not (optRun in gGlobalOptions) and (arguments != ""): 
       rawMessage(errArgsNeedRunOption)