Homebrew / homebrew-aliases

:arrow_right: Aliases for Homebrew
BSD 2-Clause "Simplified" License
153 stars 31 forks source link

cli: handle '--edit' with '=' #76

Closed rrotter closed 4 months ago

rrotter commented 4 months ago

Before:

~ % brew alias foo=bar --edit
Editing /Users/rrotter/.config/homebrew/aliases/foo_bar

After:

~ % brew alias foo=bar --edit
Editing /Users/rrotter/.config/homebrew/aliases/foo

Combined w/ #75, this will print an error if foo already exists.

MikeMcQuaid commented 4 months ago

Makes sense, thanks @rrotter!