From 6edf6a275574cf8c3cb6a7015e22d0c982e2e489 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 31 Dec 2018 01:37:24 -0800 Subject: 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) --- tools/test.nom | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/test.nom') 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")" -- cgit v1.2.3