"vscode:/vscode.git/clone" did not exist on "647285e808515eccb005ea4757857e217af8375b"
Commit 93818fd7 authored by Ehsan Azarnasab's avatar Ehsan Azarnasab
Browse files

only change option key and not its value, which could be case sensitive.

make sure --cmake can be used to pass any cmake not in the path.
parent 9e4fe65c
......@@ -71,9 +71,6 @@ def _get_options():
# parse commandline options and consume those we care about
for opt_idx, arg in enumerate(sys.argv):
if not arg.startswith('--'):
continue
opt = arg[2:].lower()
if opt_key == 'cmake':
_cmake_path = opt
......@@ -81,6 +78,10 @@ def _get_options():
sys.argv.remove(arg)
continue
if not arg.startswith('--'):
continue
opt = arg[2:].lower()
if opt == 'cmake':
_cmake_path = None
opt_key = opt
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment