Skip to content

Commit

Permalink
tools bugfix Position to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Aug 14, 2024
1 parent bc8173a commit 4478d01
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/qvcpkg-hash.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@

[CmdletBinding(DefaultParameterSetName = 'Ref')]
Param(
[Parameter(Position = 1, ParameterSetName = 'Branch', ValueFromPipeline,
[Parameter(Position = 0, ParameterSetName = 'Branch', ValueFromPipeline,
ValueFromPipelineByPropertyName,
HelpMessage = 'Specifies a branch for which to download the package archive (works with ' +
'a commit ID too).')]
[ValidateNotNullOrEmpty()]
[string] $Branch = 'main',

[Parameter(Position = 1, Mandatory, ParameterSetName = 'Tag', ValueFromPipeline,
[Parameter(Position = 0, Mandatory, ParameterSetName = 'Tag', ValueFromPipeline,
ValueFromPipelineByPropertyName,
HelpMessage = 'Specifies a tag for which to download the package archive.')]
[ValidateNotNullOrEmpty()]
[string] $Tag,

[Parameter(Position = 1, Mandatory, ParameterSetName = 'Commit', ValueFromPipeline,
[Parameter(Position = 0, Mandatory, ParameterSetName = 'Commit', ValueFromPipeline,
ValueFromPipelineByPropertyName,
HelpMessage = 'Specifies a commit ID for which to download the package archive.')]
[ValidateNotNullOrEmpty()]
Expand All @@ -24,7 +24,7 @@ Param(
'The argument "{0}" does not match the "{1}" pattern.')]
[string] $Commit,

[Parameter(Position = 1, Mandatory, ParameterSetName = 'Ref', ValueFromPipeline,
[Parameter(Position = 0, Mandatory, ParameterSetName = 'Ref', ValueFromPipeline,
ValueFromPipelineByPropertyName,
HelpMessage = 'Specifies a git object, it can be the tag, commit ID, or branch.')]
[ValidateNotNullOrEmpty()]
Expand Down

0 comments on commit 4478d01

Please sign in to comment.