Skip to content

Bug: -Profile flag in install.ps1 is documented but not supported #379

@andrader

Description

@andrader

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions