improve 'brew cask _stanza' by checking for known stanzas
This commit is contained in:
parent
441c212f2d
commit
b7a51eab6b
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user