lib/git/lint/cli/parser.rb in git-lint-5.0.0 vs lib/git/lint/cli/parser.rb in git-lint-5.1.0
- old
+ new
@@ -1,7 +1,8 @@
# frozen_string_literal: true
+require "core"
require "optparse"
module Git
module Lint
module CLI
@@ -17,10 +18,10 @@
@sections = sections
@client = client
@configuration_duplicate = configuration.dup
end
- def call arguments = []
+ def call arguments = Core::EMPTY_ARRAY
sections.each { |section| section.call configuration_duplicate, client: }
client.parse arguments
configuration_duplicate.freeze
end