This commit is contained in:
lionellloh 2020-07-12 13:24:51 +08:00 committed by Lionell
parent 3982810eab
commit 4ff3d63978

View File

@ -2210,20 +2210,15 @@ class Formula
# Shows when running `brew info`.
# Multiple licenses means that the software is licensed under multiple licenses.
# Do not use multiple licenses if e.g. different parts are under different licenses.
#
# <pre>license "BSD-2-Clause"</pre>
def license(args = nil)
if args.nil?
@licenses
else
@licenses = Array(args) unless args == ""
puts @licenses
# license.
end
end
# attr_rw :license
# @!attribute [w] homepage
# The homepage for the software. Used by users to get more information
# about the software and Homebrew maintainers as a point of contact for