about summary refs log tree commit diff stats
path: root/mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-08-12 15:53:48 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-08-12 15:53:48 -0700
commit78e3f55368cd7ca5e3ca291f18990501eac9e1ff (patch)
treec11e5193106d6248cc7b7a9331336817aa62dedc /mu
parent4f95cdb0103a95b90c5676b5a79d55afaaa80aa5 (diff)
downloadmu-78e3f55368cd7ca5e3ca291f18990501eac9e1ff.tar.gz
3170 - multiple --options at the commandline
The mu commandline now has four parts: options, commands (of which we
only have one so far: 'test'), files/directories and ingredients to pass
to 'main'. That cleans up the hacky ordering constraint we had earlier.

I've also cleaned up the usage message.
Diffstat (limited to 'mu')
-rwxr-xr-xmu6
1 files changed, 4 insertions, 2 deletions
diff --git a/mu b/mu
index 0a8dd082..71827c49 100755
--- a/mu
+++ b/mu
@@ -5,8 +5,10 @@
 # show make output only if something needs doing
 make -q || make >&2 || exit 1
 
-# If I'm setting flags at the commandline I'm often disabling optimizations.
-# In that case don't run all tests if I load any app files.
+# Little bit of cleverness: If I'm setting flags at the commandline I'm often
+# disabling optimizations. In that case don't run all tests if I load any app
+# files.
+# Might be too clever..
 if [[ $CFLAGS && $# -gt 0 && $1 != '--help' ]]  # latter two conditions are to continue printing the help message
 then
   ./mu_bin --test-only-app "$@"