lib/tocer/cli/parsers/flag.rb in tocer-15.0.0 vs lib/tocer/cli/parsers/flag.rb in tocer-15.1.0

- old
+ new

@@ -1,7 +1,8 @@ # frozen_string_literal: true +require "core" require "refinements/structs" module Tocer module CLI module Parsers @@ -14,10 +15,10 @@ def initialize configuration = Container[:configuration], client: Parser::CLIENT @configuration = configuration @client = client end - def call arguments = [] + def call arguments = ::Core::EMPTY_ARRAY client.separator "\nOPTIONS:\n" private_methods.sort.grep(/add_/).each { |method| __send__ method } client.parse arguments configuration end