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








                       

                                                     
                  
                                
           
discard """
outputsub: "Number of parameters: 0"
joinable: false
"""
# 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