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:
parent
eb7c6ad195
commit
2a3b4e4cfd
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user