improve 'brew cask _stanza' by checking for known stanzas

This commit is contained in:
Martin Schimandl 2017-10-03 19:35:43 +02:00
parent 441c212f2d
commit b7a51eab6b

View File

@ -43,6 +43,10 @@ module Hbc
@stanza = args.shift.to_sym
@format = :to_yaml if yaml?
unless DSL::DSL_METHODS.include?(stanza)
raise ArgumentError, "Illegal stanza: '#{stanza}'"
end
end
def run