buo / homebrew-cask-upgrade

A command line tool for upgrading every outdated app installed by Homebrew Cask
MIT License
2.4k stars 90 forks source link

Unable to unpin a pinned cask (wrong number of arguments) #193

Closed hkunzhe closed 2 years ago

hkunzhe commented 2 years ago

Hi, When I try to unpin a pinned cask, an error occurs: wrong number of arguments (given 2, expected 1). image Does anyone have a suggestion? Thank you in advance!

SuperHuangXu commented 2 years ago

me too...

cjlittle commented 2 years ago

Same issue over here. I took a quick look at the codebase, it looks like there is a typo that was introduced in pin_remove.rb (default parameter for quiet was removed in :18 and :26).

However, running a "manual" upgrade for the cask in question appears to clear the PINNED status. e.g.:

brew upgrade siyuan

I don't have the cycles ATM to get this environment up and running to issue a PR, hopefully someone can get to it before me!

ondrejfuhrer commented 2 years ago

Should be working now 🙂 thx @su-thomas for the contribution 🙂