summary refs log blame commit diff stats
path: root/tests/misc/tcmdline.nim
blob: cb8cb402cc0060818135333fe7456387d158bb3c (plain) (tree)
1
2
3
4
5
6
7
8
9








                       

                                                     
                  
                                
           
# Test the command line

import
  os, strutils

var
  i: int
  params = paramCount()
i = 0
writeLine(stdout, "This exe: " & getAppFilename())
writeLine(stdout, "Number of parameters: " & $params)
while i <= params:
  writeLine(stdout, paramStr(i))
  i = i + 1