From 5068a37553e1514cd1e0c347cca9b0db5993bad1 Mon Sep 17 00:00:00 2001 From: cancel Date: Sun, 5 Jan 2020 06:13:52 +0900 Subject: [PATCH] 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. --- tool | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tool b/tool index e5ce771..8d0e7ec 100755 --- a/tool +++ b/tool @@ -426,6 +426,13 @@ case $cmd in fi ;; 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";; esac