split_argv (Daemons::Controller)

    # File lib/daemons/controller.rb, line 110
        def Controller.split_argv(argv)
          argv = argv.dup

          command = nil
          controller_part = []
          app_part = []

          if COMMANDS.include? argv[0]
            command = argv.shift
          end

          if i = argv.index('--')
            # Handle the case where no controller options are given, just
            # options after "--" as well (i == 0)
            controller_part = (i == 0 ? [] : argv[0..i-1])
            app_part = argv[i+1..-1]
          else
            controller_part = argv[0..-1]
          end

          return command, controller_part, app_part
        end