How do you display help

Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

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 4 years and 6 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.
Locked
User avatar
maxdamage
Posts: 1
Last visit: Thu Oct 26, 2023 10:50 pm

How do you display help

Post by maxdamage »

Once I have compiled (encoded, Build) my script to an EXE, Is it possible to view the help I put in the header ?

If it was still a script I would use the normal 'Help scriptname.ps1 -full'. How would I do that with an exe ? I'm using PS Studio 2018.

Or do I need to code it independently?

Thanks in advance for any help.
User avatar
mxtrinidad
Posts: 399
Last visit: Tue May 16, 2023 6:52 am

Re: How do you display help

Post by mxtrinidad »

As a script executable behaves differently, you'll need to code for the help part differently.

Check out the following article that may give an idea how-to do it: https://www.sapien.com/blog/2019/06/27/ ... able-file/

Just be creative!
This topic is 4 years and 6 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.
Locked