diff options
Diffstat (limited to 'tests/accept/compile/tcmdline.nim')
-rw-r--r-- | tests/accept/compile/tcmdline.nim | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/accept/compile/tcmdline.nim b/tests/accept/compile/tcmdline.nim new file mode 100644 index 000000000..f43aecafa --- /dev/null +++ b/tests/accept/compile/tcmdline.nim @@ -0,0 +1,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 |