mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
PowerShell -v behavior updated to align with other tools like git, curl, and bash where args after -v are silently ignored. Built-in help updated to reflect changes we've made to the console host in PSCore6 removing unsupported parameters. * [feature] removed test that is no longer valid due to change in -version behavior to return error * [feature] fixed `-v X` so that it errors out correctly with proper exit code updated test to catch this * [feature] address PR feedback * [feature] make -v have behavior consistent with other tools like git, curl, bash where args after -v are ignored removed duplicate but not exactly help text that wasn't being used in the resource file removed parameters from help that are not support in PSCore6
Testing
The tests are organized by testing language. Thus Pester tests, which are written in the PowerShell language, are in ./powershell and xUnit tests, written in C#, are in ./csharp. The sanity tests for the Full .NET build of PowerShell are in ./fullclr, and the third-party shebang test is in ./shebang.