lib/argument_processor.rb in markdown_exec-2.4.0 vs lib/argument_processor.rb in markdown_exec-2.5.0

- old
+ new

@@ -3,11 +3,11 @@ # encoding=utf-8 require_relative 'constants' require_relative 'object_present' def process_arguments(arguments, loose_args, options_parsed) - # &bt arguments, loose_args, options_parsed + # !!t arguments, loose_args, options_parsed # loose_args will be empty first command contains pass-through arguments while loose_args.any? if arguments.first == loose_args.first yield ArgPro::ArgIsPosition, arguments.shift @@ -22,18 +22,18 @@ end end def process_commands(options_parsed:, arguments:, enable_search:, named_procs:, rest:) - # &bt arguments,options_parsed + # !!t arguments,options_parsed command_processed = false block_executed = false requested_menu = false position = 0 process_arguments(arguments.dup, rest.dup, options_parsed.dup) do |type, item| - # &bt type,item + # !!t type,item case type when ArgPro::ArgIsOption if named_procs.include?(item[:name]) command_processed = true yield ArgPro::CallProcess, item[:name]