remove used options from argv

This commit is contained in:
Ehsan Azarnasab 2015-08-19 16:49:45 -07:00
parent e8b161017b
commit a2cd5d441e

View File

@ -59,7 +59,12 @@ script_dir = os.getcwd()
cmake_path = find_executable("cmake")
cmake_extra = []
cmake_config = 'Release'
options = [arg[2:].lower() for arg in sys.argv if arg.startswith('--')]
options = []
for arg in sys.argv:
if arg.startswith('--'):
sys.argv.remove(arg)
options.append(arg[2:].lower())
opt_key = None
# parse commandline options