Advanced Function parameter syntax issue

Use this forum to ask questions after your subscription maintenance expires or before you buy. Need information on licensing or pricing? Questions about a trial version? This is the right place for you. No scripting questions, please.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE 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.
This topic is 6 years and 5 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
boxikg
Posts: 10
Last visit: Mon Nov 13, 2017 6:40 am

Advanced Function parameter syntax issue

Post by boxikg »

Hi, I wrote advanced function with mandatory parameter but when I hover mouse over function's name that parameter is displayed as optional (between square brackets). How to solve this since it can be very misleading?

SAPIEN PowerShell Studio 2017 5.4.145 x64
Windows 10 Pro x64
Attachments
MandatoryParameterShownAsOptional.png
MandatoryParameterShownAsOptional.png (6.38 KiB) Viewed 14880 times
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Advanced Function parameter syntax issue

Post by davidc »

Thank you for reporting this issue. It is a bug and it will be resolved in the next service release.
David
SAPIEN Technologies, Inc.
User avatar
boxikg
Posts: 10
Last visit: Mon Nov 13, 2017 6:40 am

Re: Advanced Function parameter syntax issue

Post by boxikg »

Similar bug applies to any core cmdlet (in example below for parameter Path of Add-Content cmdlet):
AddContentPathParam.png
AddContentPathParam.png (10.2 KiB) Viewed 14753 times
Path parameter is required and positional so info above is wrong too. It should have been displayed true for required and 0 for position.

However information about cmdlet itself is correct - Path parameter is required and positional (name of parameter can be omitted).
AddContentCmdlet.png
AddContentCmdlet.png (3.94 KiB) Viewed 14753 times
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Advanced Function parameter syntax issue

Post by davidc »

Thank you, we are investigating.
David
SAPIEN Technologies, Inc.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Advanced Function parameter syntax issue

Post by davidc »

We found the issue and it will be resolved in the next service release.

Thank you once again for reporting this.
David
SAPIEN Technologies, Inc.
This topic is 6 years and 5 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.