-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Update pwsh -? output to match docs #13748
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
Conversation
SteveL-MSFT
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the overall changes, but they really should have been in a separate PR to make review easier. No need to split it this time.
| $env:PSExecutionPolicyPreference environment variable does not exist on | ||
| non-Windows platforms. | ||
|
|
||
| -InputFormat | -in | -if |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per
PowerShell/src/Microsoft.PowerShell.ConsoleHost/host/msh/CommandLineParameterParser.cs
Line 897 in 3b83a68
| else if (MatchSwitch(switchKey, "inputformat", "inp") || MatchSwitch(switchKey, "if", "if")) |
-inp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
|
|
||
| -SSHServerMode | -sshs | ||
|
|
||
| Used for running PowerShell as an SSH subsystem. It is not intended or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we make it a bit more specific? Like:
Used in sshd_config for running PowerShell as an SSH subsystem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
src/Microsoft.PowerShell.ConsoleHost/resources/ManagedEntranceStrings.resx
Outdated
Show resolved
Hide resolved
SteveL-MSFT
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One suggestion
src/Microsoft.PowerShell.ConsoleHost/resources/ManagedEntranceStrings.resx
Outdated
Show resolved
Hide resolved
…Strings.resx Co-authored-by: Steve Lee <slee@microsoft.com>
daxian-dbw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor suggestion: move [-Version] to the next line to make the lines more aligned.
src/Microsoft.PowerShell.ConsoleHost/resources/ManagedEntranceStrings.resx
Outdated
Show resolved
Hide resolved
…Strings.resx Co-authored-by: Dongbo Wang <dongbow@microsoft.com>
|
CI failures are in unrelated |
|
🎉 Handy links: |
|
🎉 Handy links: |
| Does not present an interactive prompt to the user. Any attempts to use | ||
| interactive features, like Read-Host or confirmation prompts, result in | ||
| statement-terminating errors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Web docs was not updated.
PR Summary
Updates
pwsh -?output to match docs. Related to:about_PwshMicrosoftDocs/PowerShell-Docs#6548PR Context
Incorporated feedback from @mklement0 and added docs for
-sshsparameter.PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.