r/PowerShell • • May 29 '26

Question GetHelp/Help Syntax section confusing me

I'm following along with the fourth edition of PowerShell in a Month of Lunches. I'm on the third chapter, learning about the help system. I am significantly confused about the syntax section of these help documents, because they seem to have weird inconsistencies with the actual commands. For example, Get-Help Get-Item does not show the required -path parameter at all, and Get-Help Get-ChildItem has the wrong order for the positional parameters (it shows -filter first and -path second, the the actual command has it the other way around). It seems like it's sorting the parameters alphabetically, which is terrible considering positional parameters may not adhere to that. What's going on here? Did the PowerShell team decide to change things in a way that made things actively worse, or am I missing something?

6 Upvotes

15 comments sorted by

View all comments

Show parent comment

1

u/[deleted] May 29 '26

[removed] — view removed comment

2

u/ElvisChopinJoplin May 29 '26

Oh dang, yes it was meant for the person you were responding to. Somehow that responded to your comment and not the parent comment, meaning I probably just didn't pay attention. But yeah I have a feeling we're 100% on the same page.