Merge pull request #14581 from carlocab/multicat

dev-cmd/cat: accept multiple formula/cask arguments
This commit is contained in:
Mike McQuaid 2023-02-10 17:00:44 +00:00 committed by GitHub
commit 6513d18440
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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