How do you display help

Ask your Windows 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.
Post Reply
User avatar
maxdamage
Posts: 1
Joined: Sun Mar 03, 2013 12:42 pm

How do you display help

Post by maxdamage » Fri Sep 20, 2019 1:06 am

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
Site Admin
Posts: 351
Joined: Sun Mar 03, 2013 12:42 pm

Re: How do you display help

Post by mxtrinidad » Fri Sep 20, 2019 4:43 am

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!

Post Reply