Merge pull request #1014 from pierotofy/argsfix

Fix split-merge params edge case
pull/1017/head
Piero Toffanin 2019-08-05 10:48:17 -04:00 zatwierdzone przez GitHub
commit ece4e7487c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 5 dodań i 4 usunięć

Wyświetl plik

@ -284,15 +284,16 @@ def get_submodel_argv(project_name = None, submodels_path = None, submodel_name
if i == 1 and project_name and submodel_name and arg == project_name:
i += 1
continue
elif i == len(argv) - 1:
# Project name?
if project_name and submodel_name and arg == project_name:
result.append(submodel_name)
found_args['project_name'] = True
elif arg.startswith("--"):
result.append(arg)
i += 1
elif arg == '--project-path':
i += 1
continue
if arg == '--project-path':
if submodels_path:
result.append(arg)
result.append(submodels_path)