lib/tocer/cli/shell.rb in tocer-15.0.0 vs lib/tocer/cli/shell.rb in tocer-15.1.0

- old
+ new

@@ -1,7 +1,9 @@ # frozen_string_literal: true +require "core" + module Tocer module CLI # The main Command Line Interface (CLI) object. class Shell include Actions::Import[:config, :insert, :specification, :logger] @@ -9,10 +11,10 @@ def initialize parser: Parser.new, **dependencies super(**dependencies) @parser = parser end - def call arguments = [] + def call arguments = Core::EMPTY_ARRAY perform parser.call(arguments) rescue OptionParser::ParseError => error puts error.message end