aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Daniel Smith <rdnlsmith@gmail.com> 2020-03-01 17:18:34 -0500
committerGravatar Daniel Smith <rdnlsmith@gmail.com> 2020-03-01 17:18:34 -0500
commitf170b2371b756de9a4e5e1bf6113f4d3ffd6eded (patch)
tree791c1d608c98d74b32dc84f043f8239ada703fbb
parent6518d1adf0cf98d7139ee1040320e81fe1b90152 (diff)
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.
-rwxr-xr-xpwsh-diff2
1 files changed, 1 insertions, 1 deletions
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"