aboutsummaryrefslogtreecommitdiff
path: root/tools/test.nom
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-12-31 01:37:24 -0800
committerBruce Hill <bruce@bruce-hill.com>2018-12-31 01:38:23 -0800
commit6edf6a275574cf8c3cb6a7015e22d0c982e2e489 (patch)
tree00626e989a2878501c9bfd340cd3b4db2a07e8e4 /tools/test.nom
parent7762c8c45b6f0349d769682b26349fb25a7a8657 (diff)
Overhaul of command line argument parsing. Now supports "-abc" as 3
flags, and stores them as .a, .b, .c instead of ."-a", etc. (same for --args)
Diffstat (limited to 'tools/test.nom')
-rwxr-xr-xtools/test.nom6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/test.nom b/tools/test.nom
index 67afb96..d9e9269 100755
--- a/tools/test.nom
+++ b/tools/test.nom
@@ -33,14 +33,14 @@ for $filename in $(COMMAND LINE ARGS).extras:
sort $file_tests by $ -> $.source
lua> "io.write('[ .. ] ', \$filename); io.flush()"
- if (command line args)."-v": say ""
+ if (command line args).v: say ""
for $ in $file_tests:
- if (command line args)."-v":
+ if (command line args).v:
say " \(yellow ($.test, with "\n" -> "\n "))"
run $.test
- if (command line args)."-v":
+ if (command line args).v:
say (green "PASS")
..else:
say "\r[\(green "PASS")"