diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-08-12 15:53:48 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-08-12 15:53:48 -0700 |
commit | 78e3f55368cd7ca5e3ca291f18990501eac9e1ff (patch) | |
tree | c11e5193106d6248cc7b7a9331336817aa62dedc /mu | |
parent | 4f95cdb0103a95b90c5676b5a79d55afaaa80aa5 (diff) | |
download | mu-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-x | mu | 6 |
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 "$@" |