Skip to content

Commit d46e0c8

Browse files
Add positional parameters
1 parent 23a87e1 commit d46e0c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/add-practice-exercise.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
[CmdletBinding(SupportsShouldProcess)]
1818
param (
1919
[Parameter(Position = 0, Mandatory = $true)][string]$Exercise,
20-
[Parameter(Mandatory = $true)][string]$Author,
21-
[Parameter()][int]$Difficulty = 1
20+
[Parameter(Position = 1, Mandatory = $true)][string]$Author,
21+
[Parameter(Position = 2)][int]$Difficulty = 1
2222
)
2323

2424
$ErrorActionPreference = "Stop"

0 commit comments

Comments
 (0)