Skip to content

Commit b395f92

Browse files
author
Kapil Borle
committed
Make Range parameter positional
1 parent a161959 commit b395f92

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Engine/Commands/InvokeFormatterCommand.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,15 @@ public class InvokeFormatterCommand : PSCmdlet, IOutputWriter
4545
[ValidateNotNull]
4646
public object Settings { get; set; } = defaultSettingsPreset;
4747

48-
[Parameter(Mandatory = false)]
48+
/// <summary>
49+
/// The range within which formatting should take place.
50+
///
51+
/// The parameter is an array of integers of length 4 such that the first, second, third and last
52+
/// elements correspond to the start line number, start column number, end line number and
53+
/// end column number. These numbers must be greater than 0.
54+
/// </summary>
55+
/// <returns></returns>
56+
[Parameter(Mandatory = false, Position = 3)]
4957
[ValidateNotNull]
5058
[ValidateCount(4, 4)]
5159
public int[] Range { get; set; }

0 commit comments

Comments
 (0)