Skip to content

Commit 3554f54

Browse files
committed
make just ./miri print help text without 'unknown command'
1 parent 86c57a8 commit 3554f54

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

miri

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,10 @@ run|run-debug)
141141
exec cargo run $CARGO_BUILD_FLAGS -- --sysroot "$MIRI_SYSROOT" "$@"
142142
;;
143143
*)
144-
echo "Unknown command: $COMMAND"
145-
echo
144+
if [ -n "$COMMAND" ]; then
145+
echo "Unknown command: $COMMAND"
146+
echo
147+
fi
146148
echo "$USAGE"
147149
exit 1
148150
esac

0 commit comments

Comments
 (0)