PSFunctionExplorer
PSFunctionExplorer copied to clipboard
Error while omite OutPutFormat parameter
When you use this without OutPutFormat parameter
Find-FUFunction -Path .\BuildOutput\PSItSupport\PSItSupport.psm1 | Write-FUGraph -ExportPath ".\Docs\MyGraph.png"
I have this error
Write-FUGraph : Parameter set cannot be resolved using the specified named parameters.
At line:1 char:68
+ ... ort\PSItSupport.psm1 | Write-FUGraph -ExportPath ".\Docs\MyGraph.png"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (FUFunction:FUFunction) [Write-FUGraph], ParameterBindingException
+ FullyQualifiedErrorId : AmbiguousParameterSet,Write-FUGraph
I think it's related to ParameterSet If you comment on ParameterSetName in your function no more worry
[00:09.071] | PSItSupport> Find-FUFunction -Path .\BuildOutput\PSItSupport\PSItSupport.psm1 | Write-FUGraph -ExportPath ".\Docs\MyGraph.png"
[00:09.819] | PSItSupport>
or you put DefaultParameterSetName = "Graph" in your cmdletbinding