Skip to content

pwsh command-line help errors #9948

@sdwheeler

Description

@sdwheeler

Steps to reproduce

pwsh -?

Expected behavior

Actual behavior

There are several issues in the output of help for the command-line options.

  1. The -SettingsFile parameter is not listed in the syntax block but it is listed and described below.

  2. Was -LoadProfile actually added? For what purpose? It is not listed in the output for PSv6.

  3. The description for -WorkingDirectory includes markdown formatting for the "Set-Location" example, which is not appropriate for console output.

-WorkingDirectory | -wd
    Sets the working directory at the start of PowerShell given a valid PowerShell directory path.
    Executing `Set-Location -LiteralPath <path>` at startup.
  1. The the documentation in about_pwsh.md has been improved with more information and better grammar. We should sync those changes into the code.

Environment data

Name                           Value
----                           -----
PSVersion                      7.0.0-preview.1
PSEdition                      Core
GitCommitId                    7.0.0-preview.1
OS                             Microsoft Windows 10.0.18362
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-FixedThe issue is fixed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions