Adrian Ho 85c9551cd3 update.sh: reject unknown long opts
I accidentally typed `brew update --greedy` instead of `brew upgrade --greedy` and got some strange output.

This fix causes unrecognized long options to throw a usage message and exit like all the other subcommands.

Before:
```
% brew update --greedy
==> Updating Homebrew...
Usage: brew update-report [--auto-update] [--force]

The Ruby implementation of brew update. Never called manually.
[...]
```

After:
```
% brew update --greedy
Error: Unrecognized option '--greedy'
Usage: brew update, up [options]

Fetch the newest version of Homebrew and all formulae from GitHub using git(1)
and perform any necessary migrations.
[...]
```
2025-01-13 09:41:09 +08:00
..
2024-08-23 05:59:00 +01:00
2024-07-15 14:48:36 -04:00
2024-07-15 14:48:36 -04:00
2024-07-05 08:20:28 +01:00
2024-06-30 23:05:29 -04:00
2024-09-07 14:45:30 +02:00
2024-07-15 14:48:36 -04:00
2024-08-18 18:16:39 -07:00
2024-09-26 10:30:21 -04:00
2025-01-12 10:06:00 -08:00
2024-06-02 15:15:24 +01:00
2024-11-07 11:26:19 -08:00
2024-12-03 17:43:22 -08:00
2024-12-08 10:27:49 -08:00
2024-07-15 14:48:36 -04:00
2024-07-15 14:48:36 -04:00
2024-12-03 17:43:22 -08:00
2024-07-15 14:48:37 -04:00
2025-01-13 09:41:09 +08:00
2024-12-30 12:43:20 +00:00