Skip to content
Snippets Groups Projects
Commit 0de9eb03 authored by Markus Reiter's avatar Markus Reiter
Browse files

Rename `split_double_dash` to `split_non_options`.

parent be2d19fe
No related branches found
No related tags found
No related merge requests found
......@@ -160,7 +160,7 @@ module Homebrew
i = 0
remaining = []
argv, non_options = split_double_dash(argv)
argv, non_options = split_non_options(argv)
while i < argv.count
begin
......@@ -384,7 +384,7 @@ module Homebrew
@processed_options << [option.short.first, option.long.first, option.arg, option.desc.first]
end
def split_double_dash(argv)
def split_non_options(argv)
if sep = argv.index("--")
[argv.take(sep), argv.drop(sep + 1)]
else
......@@ -393,7 +393,7 @@ module Homebrew
end
def formulae(argv)
argv, non_options = split_double_dash(argv)
argv, non_options = split_non_options(argv)
named_args = argv.reject { |arg| arg.start_with?("-") } + non_options
spec = if argv.include?("--HEAD")
......
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