summary refs log tree commit diff stats
path: root/lib/pure/parseopt2.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pure/parseopt2.nim')
-rw-r--r--lib/pure/parseopt2.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pure/parseopt2.nim b/lib/pure/parseopt2.nim
index c283a5edf..5b1f50958 100644
--- a/lib/pure/parseopt2.nim
+++ b/lib/pure/parseopt2.nim
@@ -31,7 +31,7 @@ type
     cmdLongOption,            ## a long option ``--option`` detected
     cmdShortOption            ## a short option ``-c`` detected
   OptParser* =
-      object of TObject ## this object implements the command line parser
+      object of RootObj ## this object implements the command line parser
     cmd: seq[string]
     pos: int
     remainingShortOptions: string
@@ -102,10 +102,10 @@ proc next(p: var OptParser) =
   let token = p.cmd[p.pos]
   p.pos += 1
 
-  if token.startswith("--"):
+  if token.startsWith("--"):
     p.kind = cmdLongOption
     nextOption(p, token[2..token.len-1], allowEmpty=true)
-  elif token.startswith("-"):
+  elif token.startsWith("-"):
     p.kind = cmdShortOption
     nextOption(p, token[1..token.len-1], allowEmpty=true)
   else: