aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/cat.rb
diff options
context:
space:
mode:
authorMarkus Reiter2016-09-26 01:44:51 +0200
committerMarkus Reiter2016-10-02 00:24:47 +0200
commit0ab750bf24dac2cb411d76c05a0edb9b1f1b9333 (patch)
treeb442b10ea2d0a02fb1c90c59d64c953affc14b0e /Library/Homebrew/cmd/cat.rb
parentfa14c262454c2678ca9c8a1caa2f0080833ac67a (diff)
downloadbrew-0ab750bf24dac2cb411d76c05a0edb9b1f1b9333.tar.bz2
Use `module_function` for commands.
Diffstat (limited to 'Library/Homebrew/cmd/cat.rb')
-rw-r--r--Library/Homebrew/cmd/cat.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/cat.rb b/Library/Homebrew/cmd/cat.rb
index a2fbd2f00..7439869d3 100644
--- a/Library/Homebrew/cmd/cat.rb
+++ b/Library/Homebrew/cmd/cat.rb
@@ -2,6 +2,8 @@
#: Display the source to <formula>.
module Homebrew
+ module_function
+
def cat
# do not "fix" this to support multiple arguments, the output would be
# unparsable, if the user wants to cat multiple formula they can call