mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 20:56:02 +00:00
13 lines
431 B
PowerShell
13 lines
431 B
PowerShell
Describe "CoreConsoleHost unit tests" {
|
|
$powershell = Join-Path -Path $PsHome -ChildPath "powershell"
|
|
|
|
Context "Command-line parsing" {
|
|
|
|
foreach ($x in "--help", "-help", "-h", "-?", "--he", "-hel", "--HELP", "-hEl") {
|
|
It "Accepts '$x' as a parameter for help" {
|
|
& $powershell -noprofile $x | ?{ $_ -match "usage: powershell" } | Should Not BeNullOrEmpty
|
|
}
|
|
}
|
|
}
|
|
}
|