The examples in install.ps1 show:
.\install.ps1 -Profile DEFAULT -Force
However, the argument parsing logic in install.ps1 only handles -p and --profile. Passing -Profile results in an "Unknown option" error because it is not included in the switch statement (lines 172-185).
Current implementation:
switch ($args[$i]) {
{ $_ -in "-p", "--profile" } { $script:Profile_ = $args[$i + 1]; $script:ProfileProvided = $true; $i += 2 }
# ...
}
It should be updated to include "-Profile" to match the examples and standard PowerShell conventions.