Skip to content

help function shouldn't use pager for AliasHelpInfo#8552

Merged
adityapatwardhan merged 3 commits intoPowerShell:masterfrom
SteveL-MSFT:get-help-alias
Jan 7, 2019
Merged

help function shouldn't use pager for AliasHelpInfo#8552
adityapatwardhan merged 3 commits intoPowerShell:masterfrom
SteveL-MSFT:get-help-alias

Conversation

@SteveL-MSFT
Copy link
Copy Markdown
Member

@SteveL-MSFT SteveL-MSFT commented Dec 28, 2018

PR Summary

The help function passes the returned content to a pager unless it is of type HelpInfoShort (used when multiple matches found). This includes passing AliasHelpInfo which is short enough to not require passing to the pager. Fix is to simply pass output to pipeline if the result type is AliasHelpInfo rather than through the pager.

#8541

PR Checklist

Copy link
Copy Markdown
Collaborator

@iSazonov iSazonov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With one minor comment.

@adityapatwardhan adityapatwardhan merged commit d51b5fd into PowerShell:master Jan 7, 2019
@adityapatwardhan adityapatwardhan added the CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log label Jan 7, 2019
@SteveL-MSFT SteveL-MSFT deleted the get-help-alias branch January 7, 2019 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants