summary refs log tree commit diff stats
path: root/lib/parseopt.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2009-04-22 15:55:27 +0200
committerAndreas Rumpf <rumpf_a@web.de>2009-04-22 15:55:27 +0200
commite792940f5273bf8f8761c4cb29b241445e8b1d0b (patch)
tree8a6b224b8c0b3db14dbc20d89b7ca9ccb19b1f56 /lib/parseopt.nim
parent439aa2d04d5528b5aed288f70895515d1da2dc3d (diff)
downloadNim-e792940f5273bf8f8761c4cb29b241445e8b1d0b.tar.gz
version 0.7.6
Diffstat (limited to 'lib/parseopt.nim')
-rw-r--r--lib/parseopt.nim8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/parseopt.nim b/lib/parseopt.nim
index 1cce0a11e..12060ba70 100644
--- a/lib/parseopt.nim
+++ b/lib/parseopt.nim
@@ -1,7 +1,7 @@
 #
 #
 #            Nimrod's Runtime Library
-#        (c) Copyright 2008 Andreas Rumpf
+#        (c) Copyright 2009 Andreas Rumpf
 #
 #    See the file "copying.txt", included in this
 #    distribution, for details about the copyright.
@@ -73,8 +73,7 @@ proc parseWord(s: string, i: int, w: var string,
       inc(result)
 
 proc handleShortOption(p: var TOptParser) = 
-  var i: int
-  i = p.pos
+  var i = p.pos
   p.kind = cmdShortOption
   add(p.key, p.cmd[i])
   inc(i)
@@ -91,8 +90,7 @@ proc handleShortOption(p: var TOptParser) =
   p.pos = i
 
 proc next(p: var TOptParser) = 
-  var i: int
-  i = p.pos
+  var i = p.pos
   while p.cmd[i] in {'\x09', ' '}: inc(i)
   p.pos = i
   setlen(p.key, 0)