-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from autumn-library/check_ovm
тест на флаг и аргумент
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
&Аргумент(Имя = "VERSION", Описание = "Используемая версия OneScript. Допустимо использовать трехномерные версии (1.0.17, 1.0.18), stable, dev") | ||
&ВОкружении("OVM_USE_VERSION") | ||
&ТСтрока | ||
Перем ИспользуемаяВерсия; | ||
|
||
&Опция(Имя = "install i", Описание = "Выполнять установку требуемой версии в случае ее отсутствия") | ||
&ПоУмолчанию(Ложь) | ||
&ВОкружении("OVM_USE_INSTALL") | ||
Перем ВыполнятьУстановкуПриНеобходимости; | ||
|
||
Перем Результат Экспорт; | ||
|
||
&КомандаПриложения(Имя = "argandflag") | ||
Процедура ПриСозданииОбъекта() | ||
Результат = Новый Массив(); | ||
КонецПроцедуры | ||
|
||
&ВыполнениеКоманды | ||
Процедура СформироватьРезультат() Экспорт | ||
|
||
Результат.Добавить(ИспользуемаяВерсия); | ||
Результат.Добавить(ВыполнятьУстановкуПриНеобходимости); | ||
|
||
КонецПроцедуры |