DomT4 / homebrew-autoupdate

:tropical_drink: An easy, convenient way to automatically update Homebrew.
BSD 2-Clause "Simplified" License
968 stars 54 forks source link

Start only allows one option #121

Closed marquiswang closed 8 months ago

marquiswang commented 8 months ago

Running start with multiple options:

brew autoupdate start 86400 --upgrade –-sudo

leads to the error:

Error: Invalid usage: This subcommand does not take more than 1 named argument.

But there are definitely use cases when you might want multiple options. --upgrade --sudo --immediate --cleanup, etc.

swissbuechi commented 8 months ago

But there are definitely use cases when you might want multiple options. --upgrade --sudo --immediate --cleanup, etc.

You are right, I actually recommend running the following combination: brew autoupdate start 43200 --upgrade --cleanup --immediate --sudo

The command brew autoupdate start 86400 --upgrade --sudo works fine for me.

But, when I copy and paste your command from above, I somehow get the same error as you. I think there is some strange character in yours. I will try to figure it out.

Update: Got it, you used - instead of - in the --sudo argument.

image

This issue can be closed.

marquiswang commented 8 months ago

Oh god, how embarrassing. I copy/pasted from somewhere with bad formatting. Closing.