def parse_args():
    'This function parses the command-line arguments ``sys.argv`` and returns\n    the tuple ``(setuptools_args, cmake_executable, skip_generator_test, cmake_args, build_tool_args)``\n    where each ``*_args`` element corresponds to a set of arguments separated by ``--``.'
    dutils = []
    cmake = []
    make = []
    argsets = [dutils, cmake, make]
    i = 0
    separator = '--'
    for arg in sys.argv:
        if (arg == separator):
            i += 1
            if (i >= len(argsets)):
                sys.exit('ERROR: Too many "{}" separators provided (expected at most {}).'.format(separator, (len(argsets) - 1)))
        else:
            argsets[i].append(arg)
    (dutils, cmake_executable, skip_generator_test) = parse_skbuild_args(dutils, cmake, make)
    return (dutils, cmake_executable, skip_generator_test, cmake, make)
This function parses the command-line arguments ``sys.argv`` and returns
the tuple ``(setuptools_args, cmake_executable, skip_generator_test, cmake_args, build_tool_args)``
where each ``*_args`` element corresponds to a set of arguments separated by ``--``.
def parse_args():
    'This function parses the command-line arguments ``sys.argv`` and returns\n    the tuple ``(setuptools_args, cmake_executable, skip_generator_test, cmake_args, build_tool_args)``\n    where each ``*_args`` element corresponds to a set of arguments separated by ``--``.'
    dutils = []
    cmake = []
    make = []
    argsets = [dutils, cmake, make]
    i = 0
    separator = '--'
    for arg in sys.argv:
        if (arg == separator):
            i += 1
            if (i >= len(argsets)):
                sys.exit('ERROR: Too many "{}" separators provided (expected at most {}).'.format(separator, (len(argsets) - 1)))
        else:
            argsets[i].append(arg)
    (dutils, cmake_executable, skip_generator_test) = parse_skbuild_args(dutils, cmake, make)
    return (dutils, cmake_executable, skip_generator_test, cmake, make)