From f170b2371b756de9a4e5e1bf6113f4d3ffd6eded Mon Sep 17 00:00:00 2001 From: Daniel Smith Date: Sun, 1 Mar 2020 17:18:34 -0500 Subject: Fix input binding error for git log `git log` takes a "long" time to start producing output, which caused PowerShell to complain repeatedly that it could not bind the `$input` parameter. Removing the `Mandatory=$true` constraint seems to fix this. --- pwsh-diff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwsh-diff b/pwsh-diff index bf10324..4dcc558 100755 --- a/pwsh-diff +++ b/pwsh-diff @@ -1,7 +1,7 @@ #!/usr/bin/env pwsh param ( - [Parameter(Mandatory=$true, ValueFromPipeline=$true)][string[]]$input + [Parameter(ValueFromPipeline=$true)][string[]]$input ) $VERSION = "0.1.0" -- cgit v1.2.3