From c2b3a3f6085f08beb085fa2cc3eeff0100842602 Mon Sep 17 00:00:00 2001 From: Simon Heather Date: Fri, 12 Jun 2020 20:18:02 +0100 Subject: [PATCH] Set-GitHubConfiguration Add PositionalBinding --- GitHubConfiguration.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/GitHubConfiguration.ps1 b/GitHubConfiguration.ps1 index dcd2b90a..c66c4b77 100644 --- a/GitHubConfiguration.ps1 +++ b/GitHubConfiguration.ps1 @@ -169,7 +169,9 @@ function Set-GitHubConfiguration Sets all requests to connect to a GitHub Enterprise server running at github.contoso.com. #> - [CmdletBinding(SupportsShouldProcess)] + [CmdletBinding( + PositionalBinding = $false, + SupportsShouldProcess)] [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSShouldProcess", "", Justification="Methods called within here make use of PSShouldProcess, and the switch is passed on to them inherently.")] param( [ValidatePattern('^(?!https?:)(?!api\.)(?!www\.).*')]