String Arrays param

Product: PowerShell Universal
Version: 3.4.6

Having an issue with string arrays as a param in scripts. When providing default values, only the first element is displayed in the UI.

A platform upgrade is planned, but are you aware of the issue? And if so, has it been resolved in an updated version?

Running into this bug as well on version 3.8.12

[CmdletBinding()]
param( 
    [Parameter(HelpMessage = "")]
    [string[]]
    $strings = @('string1', 'string2')
)

@adam

I’m joining this thread because the issue is still present in version 3.9.4 Ć”nd the freshest of the fresh 3.9.5!

1 Like

This issue is still present in V4.4.1 Ɣnd V4.5.0

Would be great to finally see this resolved.

1 Like

You think we should just give up? @mikedhanson :smiling_face_with_tear:

I’m not finding an issue for this in the tracker. Feel free to open one and we could get it assigned to the 4.5.1 milestone.

Hi Adam!
Thanks for following up on this. I’d love to ā€œopen an issue on the trackerā€ but am not 100% on how to do that exactly.

Created issue - Params - When providing default values, only the first element is displayed in the UI. Ā· Issue #4181 Ā· ironmansoftware/powershell-universal Ā· GitHub

2 Likes

Hey @adam Unfortunately, I’m still experiencing the same issue in version 4.5.2 :disappointed_relieved: