mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-19 06:53:58 +08:00
Make parameter mandatory
This commit is contained in:
parent
138bce34f2
commit
eabacf0d14
@ -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" ),
|
||||
param ( [Parameter(Mandatory=$true)][string]$program,
|
||||
[string]$argumentString = "",
|
||||
[switch]$waitForExit )
|
||||
[switch]$waitForExit = $false )
|
||||
|
||||
$psi = new-object "Diagnostics.ProcessStartInfo"
|
||||
$psi.FileName = $program
|
||||
|
Loading…
Reference in New Issue
Block a user