diff options
-rwxr-xr-x | util/crossgcc/buildgcc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc index 0c0154691d..f96e2cf59e 100755 --- a/util/crossgcc/buildgcc +++ b/util/crossgcc/buildgcc @@ -725,11 +725,16 @@ while true ; do -n|--nocolor) shift; \ unset red RED green GREEN blue BLUE cyan CYAN NC;; --) shift; break;; - -*) printf "Invalid option\n\n"; myhelp; exit 1;; *) break;; esac done +if [ $# -gt 0 ]; then + printf "Excessive arguments: $*\n" + myhelp + exit 1 +fi + if [ -n "$PRINTSTABLE" ]; then print_stable exit 0 |