   end
 
   test "collects multiple invalid options" do
-    args = ["--bad", "opt", "foo", "-o", "bad", "bar"]
-    assert OptionParser.parse(args, switches: [bad: :integer])
+    argv = ["--bad", "opt", "foo", "-o", "bad", "bar"]
+    assert OptionParser.parse(argv, switches: [bad: :integer])
            == {[], ["foo", "bar"], [{"--bad", "opt"}, {"-o", "bad"}]}
   end
 

  end

  test "keeps options on configured keep" do
    args = ["--require", "foo", "--require", "bar", "baz"]
    assert OptionParser.parse(args, switches: [require: :keep])
           == {[require: "foo", require: "bar"], ["baz"], []}

    assert OptionParser.parse(["--require"], switches: [require: :keep])

    assert OptionParser.parse(["arg1", "-43"])
      == {[], ["arg1", "-43"], []}

    assert OptionParser.parse(["arg1", "-o", "-43"], switches: [option: :integer], aliases: [o: :option])
      == {[option: -43], ["arg1"], []}

    assert OptionParser.parse(["arg1", "--option=-43"], switches: [option: :integer])
      == {[option: -43], ["arg1"], []}
  end

