make just ./miri print help text without 'unknown command'

This commit is contained in:
Ralf Jung 2020-04-06 09:34:27 +02:00
parent 86c57a8490
commit 3554f54173

6
miri
View File

@ -141,8 +141,10 @@ run|run-debug)
exec cargo run $CARGO_BUILD_FLAGS -- --sysroot "$MIRI_SYSROOT" "$@"
;;
*)
echo "Unknown command: $COMMAND"
echo
if [ -n "$COMMAND" ]; then
echo "Unknown command: $COMMAND"
echo
fi
echo "$USAGE"
exit 1
esac