String Arrays param

avatar
(anonymous user)
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?

All Comments (8)

avatar

Running into this bug as well on version 3.8.12



d85df599edc1269fe7f33ad4d11e48018e30d8ad

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


@Adam Driscoll

d85df599edc1269fe7f33ad4d11e48018e30d8ad.png

avatar

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!

avatar

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

Would be great to finally see this resolved.

avatar

You think we should just give up? @michaelhanson1458

avatar

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.

Adam Driscoll
PowerShell Expert and Developer at Devolutions

avatar

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.

avatar
avatar

Hey @Adam Driscoll Unfortunately, I’m still experiencing the same issue in version 4.5.2