Skip to content

Commit 63be264

Browse files
fix: preserve PowerShell installer help switch (#73)
Follow-up to #101; fixes the Windows installer root cause for #73.
1 parent 321c3ec commit 63be264

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

‎install.ps1‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
param(
2-
[switch]$Help
2+
[Alias("Help")]
3+
[switch]$ShowHelp
34
)
45

56
$ErrorActionPreference = "Stop"
@@ -9,7 +10,7 @@ function Fail([string]$Message) {
910
exit 1
1011
}
1112

12-
if ($Help) {
13+
if ($ShowHelp) {
1314
Write-Output "OpenKyrozen installer: installs the pinned v2.0.1 GitHub release, uv, Python 3.12/3.13, and Web dependencies."
1415
exit 0
1516
}

‎tests/test_distribution.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ def test_posix_installer_has_valid_syntax_and_idempotent_user_path_logic(self):
8787
def test_powershell_installer_is_static_safe_and_parses_when_available(self):
8888
installer = ROOT / "install.ps1"
8989
text = installer.read_text(encoding="utf-8")
90+
self.assertIn('[Alias("Help")]', text)
91+
self.assertIn("$ShowHelp", text)
9092
self.assertIn("[Environment]::GetEnvironmentVariable(\"Path\", \"User\")", text)
9193
self.assertIn("SetEnvironmentVariable(\"Path\"", text)
9294
self.assertIn("tool install --python", text)

0 commit comments

Comments
 (0)