Skip to content
Snippets Groups Projects
Commit 70a5ebaf authored by Vítor Galvão's avatar Vítor Galvão
Browse files

cask - internal_stanza: arguments to args

parent 6f305ad3
No related branches found
No related tags found
No related merge requests found
......@@ -50,12 +50,12 @@ module Hbc
:uninstall_postflight,
]
def self.run(*arguments)
table = arguments.include? "--table"
quiet = arguments.include? "--quiet"
format = :to_yaml if arguments.include? "--yaml"
format = :inspect if arguments.include? "--inspect"
cask_tokens = arguments.reject { |arg| arg.chars.first == "-" }
def self.run(*args)
table = args.include? "--table"
quiet = args.include? "--quiet"
format = :to_yaml if args.include? "--yaml"
format = :inspect if args.include? "--inspect"
cask_tokens = args.reject { |arg| arg.chars.first == "-" }
stanza = cask_tokens.shift.to_sym
cask_tokens = Hbc.all_tokens if cask_tokens.empty?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment