Edit Script Parameters not working

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 3 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
CermakPOI
Posts: 41
Last visit: Wed Jan 31, 2024 2:57 am

Edit Script Parameters not working

Post by CermakPOI »

Product: PowerShell Studio 2020 (64 Bit)
Build: v5.7.178
OS: Windows 10 Enterprise (64 Bit)
Build: v10.0.16299.0

*** Please add details and screenshots as needed below. ***
Hi,
There is something wrong with the functionality:
Edit Script Parameters

It doesn't read the existing Script Parameters!
I can reproduce this with all of my scripts.
if i edit and just enable CmdletBinding it creates this (will cascade if used multiple times.):
  1. [CmdletBinding()]
  2. param ()[CmdletBinding(DefaultParameterSetName = 'List',
  3.                SupportsShouldProcess = $true)]
  4. param
  5. (
So NO EDIT of EXISTING Parameters is possible.

Edit Function is still working as expected.
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 11:13 am
Answers: 39
Been upvoted: 30 times

Re: Edit Script Parameters not working

Post by brittneyr »

Please try build 5.7.179 and let me know if you are still having issues.
Brittney
SAPIEN Technologies, Inc.
This topic is 3 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.