lib/gemsmith/templates/%project_name%/lib/%project_path%/cli/parser.rb.erb in gemsmith-19.1.0 vs lib/gemsmith/templates/%project_name%/lib/%project_path%/cli/parser.rb.erb in gemsmith-19.2.0
- old
+ new
@@ -1,5 +1,6 @@
+require "core"
require "optparse"
<% namespace do %>
module CLI
# Assembles and parses all Command Line Interface (CLI) options.
@@ -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