dev-cmd/cat: accept multiple formula/cask arguments

"cat" is short for "concatenate" (and not "dump to stdout"), so it seems
a little silly for `brew cat` to not be able to concatenate
formulae/casks.

Let's fix that.
This commit is contained in:
Carlo Cabrera 2023-02-10 22:07:10 +08:00
parent eb7c6ad195
commit 2a3b4e4cfd
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -22,7 +22,7 @@ module Homebrew
conflicts "--formula", "--cask" conflicts "--formula", "--cask"
named_args [:formula, :cask], number: 1 named_args [:formula, :cask], min: 1
end end
end end
@ -44,6 +44,6 @@ module Homebrew
"cat" "cat"
end end
safe_system pager, args.named.to_paths.first safe_system pager, *args.named.to_paths
end end
end end