def test_parse_split_positional_arguments(self, parser):
    parser.addoption('-R', action='store_true')
    parser.addoption('-S', action='store_false')
    args = parser.parse(['-R', '4', '2', '-S'])
    assert (getattr(args, parseopt.FILE_OR_DIR) == ['4', '2'])
    args = parser.parse(['-R', '-S', '4', '2', '-R'])
    assert (getattr(args, parseopt.FILE_OR_DIR) == ['4', '2'])
    assert (args.R is True)
    assert (args.S is False)
    args = parser.parse(['-R', '4', '-S', '2'])
    assert (getattr(args, parseopt.FILE_OR_DIR) == ['4', '2'])
    assert (args.R is True)
    assert (args.S is False)
def test_parse_split_positional_arguments(self, parser):
    parser.addoption('-R', action='store_true')
    parser.addoption('-S', action='store_false')
    args = parser.parse(['-R', '4', '2', '-S'])
    assert (getattr(args, parseopt.FILE_OR_DIR) == ['4', '2'])
    args = parser.parse(['-R', '-S', '4', '2', '-R'])
    assert (getattr(args, parseopt.FILE_OR_DIR) == ['4', '2'])
    assert (args.R is True)
    assert (args.S is False)
    args = parser.parse(['-R', '4', '-S', '2'])
    assert (getattr(args, parseopt.FILE_OR_DIR) == ['4', '2'])
    assert (args.R is True)
    assert (args.S is False)