Skip to content

Commit a4495fc

Browse files
committed
Auto merge of #793 - jyn514:master, r=RalfJung
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 (because of the `set -e` at the top). Although that gives some indication of the error, it's not as helpful as showing the usage.
2 parents 945f007 + 38b947b commit a4495fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

miri

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ find_sysroot() {
8989

9090
# Determine command.
9191
COMMAND="$1"
92-
shift
92+
[ $# -gt 0 ] && shift
9393

9494
# Determine flags passed to all cargo invocations.
9595
# This is a bit more annoying that one would hope due to

0 commit comments

Comments
 (0)