Closed rkeithhill closed 8 years ago
The parameter/arg get passed to Get-History because of the @PSBoundParameters and Get-History barfs:
@PSBoundParameters
PS>Get-Elapsed -Format '{0:h\:mm\:ss\.fff}' Get-History : A parameter cannot be found that matches parameter name 'Format'. At C:\Users\Keith\Documents\WindowsPowerShell\Modules\PowerLine\1.0.0\PowerLine.psm1:25 char:40 + $LastCommand = Get-History -Count 1 @PSBoundParameters + ~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Get-History], ParameterBindingException + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.GetHistoryCommand
Well, that was silly of me. I'll fix that in the next build.
Fixed in v2
The parameter/arg get passed to Get-History because of the
@PSBoundParameters
and Get-History barfs: