Browse Source

Add better error message for old opts usage in tool

Will hopefully make it easier for people to use old guides floating
around on the internet.
master
cancel 5 years ago
parent
commit
5068a37553
  1. 7
      tool

7
tool

@ -426,6 +426,13 @@ case $cmd in
fi fi
;; ;;
help) print_usage; exit 0;; help) print_usage; exit 0;;
-*)
echo "The syntax has changed for the 'tool' build script." >&2
echo "The options now need to come after the command name." >&2
echo "Do it like this instead:" >&2
echo "./tool build --portmidi orca" >&2
exit 1
;;
*) fatal "Unrecognized command $cmd";; *) fatal "Unrecognized command $cmd";;
esac esac

Loading…
Cancel
Save