-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running Update-MarkdownHelp with no changes is adding CommonParameters #223
Comments
Also, I'm not using -AlphabeticParamsOrder yet Update-MarkdownHelp wants to put Confirm first rather than at the end before WhatIf. |
@vors @rkeithhill So the desired behaviour is to supress CommonParameters if it doesn't exist in an existing markdown document? |
My primary complaint is that after you run New-MarkdownHelp, running Update-MarkdownHelp should not cause any changes to the markdown file if there have been no changes to the function sig. OTOH if I changed the function to an advanced function then the addition of common parameters by Update-MarkdownHelp would make sense. |
@rkeithhill Thanks. That helped and I see the issue. Currently Update-MarkdownHelp appears to be working as expected. Only adding CommonParameters when required. |
Ah, so it's a |
Yes, the markdown generated by @rkeithhill Will fixing Re: the blank line being removed in outputs sections see #319. |
…ell/platyPS/PowerShell#223 PowerShell/platyPS/PowerShell#253
BTW very well could be a problem with the initial new-markdownhelp not adding the common parameter info in the first place.
Steps to reproduce
Generate markdown with new-markdownhelp on advanced function.
Fill in placeholders.
Commit that
With no changes to the function run update-markdownhelp.
Expected behavior
No difference.
Actual behavior
[CommonParameters] was added to the syntax section.

Also curious that update removed a blank line.
Environment data
v0.7.2
The text was updated successfully, but these errors were encountered: