diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-11-09 17:52:04 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-11-09 20:09:22 -0800 |
| commit | eabacf0d14b288f8d8a530cbefce09f7e26aa981 (patch) | |
| tree | da021318c299182d8f3c4b9ee52c08e4980ba3e2 /scripts/fetchDependency.ps1 | |
| parent | 138bce34f27f2cb2cdeb50056b414d1cd80e73ec (diff) | |
| download | vcpkg-eabacf0d14b288f8d8a530cbefce09f7e26aa981.tar.gz vcpkg-eabacf0d14b288f8d8a530cbefce09f7e26aa981.zip | |
Make parameter mandatory
Diffstat (limited to 'scripts/fetchDependency.ps1')
| -rw-r--r-- | scripts/fetchDependency.ps1 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/fetchDependency.ps1 b/scripts/fetchDependency.ps1 index f90a51290..b185336f5 100644 --- a/scripts/fetchDependency.ps1 +++ b/scripts/fetchDependency.ps1 @@ -145,9 +145,9 @@ function SelectProgram([Parameter(Mandatory=$true)][string]$Dependency) # Using this to wait for the execution to finish function Invoke-Command() { - param ( [string]$program = $(throw "Please specify a program" ), - [string]$argumentString = "", - [switch]$waitForExit ) + param ( [Parameter(Mandatory=$true)][string]$program, + [string]$argumentString = "", + [switch]$waitForExit = $false ) $psi = new-object "Diagnostics.ProcessStartInfo" $psi.FileName = $program |
