1 2 3 4 5 6 7 8 9 10 11 12 13 14
# Test the command line import os, strutils var i: int params = paramCount() i = 0 writeln(stdout, "This exe: " & getApplicationFilename()) writeln(stdout, "Number of parameters: " & $params) while i <= params: writeln(stdout, paramStr(i)) i = i + 1