lib/rabbit/command/rabbit.rb in rabbit-2.0.0 vs lib/rabbit/command/rabbit.rb in rabbit-2.0.1

- old
+ new

@@ -64,9 +64,20 @@ private def parse_command_line_arguments(arguments) Console.parse!(arguments) do |parser, options| @logger = options.logger + rest_arguments_from_options_file = [] + options.before_hooks << lambda do |_, _, _| + rest_arguments_from_options_file = options.rest.dup + options.rest.clear + end + options.after_hooks << lambda do |console, _, _| + if options.rest.empty? + options.rest = rest_arguments_from_options_file + end + end + options.after_hooks << lambda do |console, _, _| adjust_rest_arguments(console, parser, options) end options.options_file = ".rabbit"