Show usage if run without arguments

Before, running `./miri` without arguments gave
'./miri: 92: shift: can't shift that many' if run with /bin/sh,
or no output at all when run with bash.

Although that gives some indication of the error, it's not as helpful as
showing the usage.
This commit is contained in:
Joshua Nelson 2019-06-27 21:46:24 -04:00
parent 945f007c0d
commit 38b947b953

2
miri
View File

@ -89,7 +89,7 @@ find_sysroot() {
# Determine command.
COMMAND="$1"
shift
[ $# -gt 0 ] && shift
# Determine flags passed to all cargo invocations.
# This is a bit more annoying that one would hope due to