Skip to content

Commit

Permalink
Add position parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Oct 21, 2024
1 parent 4f97eb4 commit ecd284c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/add-practice-exercise.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
[CmdletBinding(SupportsShouldProcess)]
param (
[Parameter(Position = 0, Mandatory = $true)][string]$Exercise,
[Parameter(Mandatory = $true)][string]$Author,
[Parameter()][int]$Difficulty = 1
[Parameter(Position = 1, Mandatory = $true)][string]$Author,
[Parameter(Position = 2)][int]$Difficulty = 1
)

$ErrorActionPreference = "Stop"
Expand Down

0 comments on commit ecd284c

Please sign in to comment.