Method: U3d::CommandsGenerator#extract_run_args

Defined in:
lib/u3d/commands_generator.rb

#extract_run_args(args = ARGV) ⇒ Object



55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/u3d/commands_generator.rb', line 55

def extract_run_args(args = ARGV)
  both_args = [[], []]
  idx = 0
  args.each do |arg|
    if arg == '--'
      idx = 1
      next
    end
    both_args[idx] << arg
  end
  args.replace both_args[0]
  both_args[1]
end