aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-11-09 17:52:04 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2017-11-09 20:09:22 -0800
commiteabacf0d14b288f8d8a530cbefce09f7e26aa981 (patch)
treeda021318c299182d8f3c4b9ee52c08e4980ba3e2
parent138bce34f27f2cb2cdeb50056b414d1cd80e73ec (diff)
downloadvcpkg-eabacf0d14b288f8d8a530cbefce09f7e26aa981.tar.gz
vcpkg-eabacf0d14b288f8d8a530cbefce09f7e26aa981.zip
Make parameter mandatory
-rw-r--r--scripts/fetchDependency.ps16
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