Skip to content

Commit

Permalink
Revise New-ItemLink parameter order
Browse files Browse the repository at this point in the history
  • Loading branch information
joeltimothyoh committed Aug 2, 2021
1 parent 1cfcd4e commit 67e82b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Sample definition files can be found [here](docs/samples/definitions/links).
#### Parameters

```powershell
New-ItemLink [-Path] <string> [-ItemType] {HardLink | Junction | SymbolicLink} [-Value] <string> [-Force] [<CommonParameters>]
New-ItemLink [-Path] <string> [-Value] <string> [-ItemType] {HardLink | Junction | SymbolicLink} [-Force] [<CommonParameters>]
```

#### Examples
Expand Down
8 changes: 4 additions & 4 deletions src/ItemLinkManagement/Public/New-ItemLink.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ function New-ItemLink {
[string]$Path
,
[Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)]
[ValidateSet('HardLink', 'Junction', 'SymbolicLink')]
[string]$ItemType
,
[Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)]
[ValidateNotNullOrEmpty()]
[string]$Value
,
[Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)]
[ValidateSet('HardLink', 'Junction', 'SymbolicLink')]
[string]$ItemType
,
[Parameter(Mandatory=$false)]
[switch]$Force
)
Expand Down

0 comments on commit 67e82b3

Please sign in to comment.