Skip to content

Commit 8c303f1

Browse files
matt9ucciSean Wheeler
authored andcommitted
Fix parameter's position in Get-Content.md (#1959)
1 parent d0b75bb commit 8c303f1

File tree

5 files changed

+67
-80
lines changed

5 files changed

+67
-80
lines changed

reference/3.0/Microsoft.PowerShell.Management/Get-Content.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,23 @@ Gets the content of the item at the specified location.
1414
## SYNTAX
1515

1616
### Path (Default)
17-
```
18-
Get-Content [-ReadCount <Int64>] [-TotalCount <Int64>] [-Tail <Int32>] [-Path] <String[]> [-Filter <String>]
19-
[-Include <String[]>] [-Exclude <String[]>] [-Force] [-Credential <PSCredential>] [-UseTransaction]
20-
[-Delimiter <String>] [-Wait] [-Raw] [-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <String>]
17+
```powershell
18+
Get-Content [-Path] <String[]> [-ReadCount <Int64>] [-TotalCount <Int64>]
19+
[-Tail <Int32>] [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>]
20+
[-Force] [-Credential <PSCredential>] [-UseTransaction]
21+
[-Delimiter <String>] [-Wait] [-Raw]
22+
[-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <String>]
2123
[<CommonParameters>]
2224
```
2325

2426
### LiteralPath
25-
```
26-
Get-Content [-ReadCount <Int64>] [-TotalCount <Int64>] [-Tail <Int32>] -LiteralPath <String[]>
27-
[-Filter <String>] [-Include <String[]>] [-Exclude <String[]>] [-Force] [-Credential <PSCredential>]
28-
[-UseTransaction] [-Delimiter <String>] [-Wait] [-Raw] [-Encoding <FileSystemCmdletProviderEncoding>]
29-
[-Stream <String>] [<CommonParameters>]
27+
```powershell
28+
Get-Content -LiteralPath <String[]> [-ReadCount <Int64>] [-TotalCount <Int64>]
29+
[-Tail <Int32>] [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>]
30+
[-Force] [-Credential <PSCredential>] [-UseTransaction]
31+
[-Delimiter <String>] [-Wait] [-Raw]
32+
[-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <String>]
33+
[<CommonParameters>]
3034
```
3135

3236
## DESCRIPTION
@@ -311,7 +315,7 @@ Parameter Sets: Path
311315
Aliases:
312316

313317
Required: True
314-
Position: 1
318+
Position: 0
315319
Default value: None
316320
Accept pipeline input: True (ByPropertyName)
317321
Accept wildcard characters: True

reference/4.0/Microsoft.PowerShell.Management/Get-Content.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,23 @@ Gets the content of the item at the specified location.
1616
## SYNTAX
1717

1818
### Path (Default)
19-
```
20-
Get-Content [-ReadCount <Int64>] [-TotalCount <Int64>] [-Tail <Int32>] [-Path] <String[]> [-Filter <String>]
21-
[-Include <String[]>] [-Exclude <String[]>] [-Force] [-Credential <PSCredential>] [-UseTransaction]
22-
[-Delimiter <String>] [-Wait] [-Raw] [-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <String>]
19+
```powershell
20+
Get-Content [-Path] <String[]> [-ReadCount <Int64>] [-TotalCount <Int64>]
21+
[-Tail <Int32>] [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>]
22+
[-Force] [-Credential <PSCredential>] [-UseTransaction]
23+
[-Delimiter <String>] [-Wait] [-Raw]
24+
[-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <String>]
2325
[<CommonParameters>]
2426
```
2527

2628
### LiteralPath
27-
```
28-
Get-Content [-ReadCount <Int64>] [-TotalCount <Int64>] [-Tail <Int32>] -LiteralPath <String[]>
29-
[-Filter <String>] [-Include <String[]>] [-Exclude <String[]>] [-Force] [-Credential <PSCredential>]
30-
[-UseTransaction] [-Delimiter <String>] [-Wait] [-Raw] [-Encoding <FileSystemCmdletProviderEncoding>]
31-
[-Stream <String>] [<CommonParameters>]
29+
```powershell
30+
Get-Content -LiteralPath <String[]> [-ReadCount <Int64>] [-TotalCount <Int64>]
31+
[-Tail <Int32>] [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>]
32+
[-Force] [-Credential <PSCredential>] [-UseTransaction]
33+
[-Delimiter <String>] [-Wait] [-Raw]
34+
[-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <String>]
35+
[<CommonParameters>]
3236
```
3337

3438
## DESCRIPTION
@@ -198,7 +202,7 @@ Parameter Sets: Path
198202
Aliases:
199203

200204
Required: True
201-
Position: 1
205+
Position: 0
202206
Default value: None
203207
Accept pipeline input: True (ByPropertyName)
204208
Accept wildcard characters: True

reference/5.0/Microsoft.PowerShell.Management/Get-Content.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,23 @@ Gets the content of the item at the specified location.
1616
## SYNTAX
1717

1818
### Path (Default)
19-
```
20-
Get-Content [-ReadCount <Int64>] [-TotalCount <Int64>] [-Tail <Int32>] [-Path] <String[]> [-Filter <String>]
21-
[-Include <String[]>] [-Exclude <String[]>] [-Force] [-Credential <PSCredential>] [-UseTransaction]
22-
[-Delimiter <String>] [-Wait] [-Raw] [-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <String>]
19+
```powershell
20+
Get-Content [-Path] <String[]> [-ReadCount <Int64>] [-TotalCount <Int64>]
21+
[-Tail <Int32>] [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>]
22+
[-Force] [-Credential <PSCredential>] [-UseTransaction]
23+
[-Delimiter <String>] [-Wait] [-Raw]
24+
[-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <String>]
2325
[<CommonParameters>]
2426
```
2527

2628
### LiteralPath
27-
```
28-
Get-Content [-ReadCount <Int64>] [-TotalCount <Int64>] [-Tail <Int32>] -LiteralPath <String[]>
29-
[-Filter <String>] [-Include <String[]>] [-Exclude <String[]>] [-Force] [-Credential <PSCredential>]
30-
[-UseTransaction] [-Delimiter <String>] [-Wait] [-Raw] [-Encoding <FileSystemCmdletProviderEncoding>]
31-
[-Stream <String>] [<CommonParameters>]
29+
```powershell
30+
Get-Content -LiteralPath <String[]> [-ReadCount <Int64>] [-TotalCount <Int64>]
31+
[-Tail <Int32>] [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>]
32+
[-Force] [-Credential <PSCredential>] [-UseTransaction]
33+
[-Delimiter <String>] [-Wait] [-Raw]
34+
[-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <String>]
35+
[<CommonParameters>]
3236
```
3337

3438
## DESCRIPTION

reference/5.1/Microsoft.PowerShell.Management/Get-Content.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,23 @@ Gets the content of the item at the specified location.
1616
## SYNTAX
1717

1818
### Path (Default)
19-
```
20-
Get-Content [-ReadCount <Int64>] [-TotalCount <Int64>] [-Tail <Int32>] [-Path] <String[]> [-Filter <String>]
21-
[-Include <String[]>] [-Exclude <String[]>] [-Force] [-Credential <PSCredential>] [-UseTransaction]
22-
[-Delimiter <String>] [-Wait] [-Raw] [-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <String>]
19+
```powershell
20+
Get-Content [-Path] <String[]> [-ReadCount <Int64>] [-TotalCount <Int64>]
21+
[-Tail <Int32>] [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>]
22+
[-Force] [-Credential <PSCredential>] [-UseTransaction]
23+
[-Delimiter <String>] [-Wait] [-Raw]
24+
[-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <String>]
2325
[<CommonParameters>]
2426
```
2527

2628
### LiteralPath
27-
```
28-
Get-Content [-ReadCount <Int64>] [-TotalCount <Int64>] [-Tail <Int32>] -LiteralPath <String[]>
29-
[-Filter <String>] [-Include <String[]>] [-Exclude <String[]>] [-Force] [-Credential <PSCredential>]
30-
[-UseTransaction] [-Delimiter <String>] [-Wait] [-Raw] [-Encoding <FileSystemCmdletProviderEncoding>]
31-
[-Stream <String>] [<CommonParameters>]
29+
```powershell
30+
Get-Content -LiteralPath <String[]> [-ReadCount <Int64>] [-TotalCount <Int64>]
31+
[-Tail <Int32>] [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>]
32+
[-Force] [-Credential <PSCredential>] [-UseTransaction]
33+
[-Delimiter <String>] [-Wait] [-Raw]
34+
[-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <String>]
35+
[<CommonParameters>]
3236
```
3337

3438
## DESCRIPTION

reference/6/Microsoft.PowerShell.Management/Get-Content.md

Lines changed: 13 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,22 @@ Gets the content of the item at the specified location.
1616
## SYNTAX
1717

1818
### Path (Default)
19-
```
20-
Get-Content [-ReadCount <Int64>] [-TotalCount <Int64>] [-Tail <Int32>] [-Path] <String[]> [-Filter <String>]
21-
[-Include <String[]>] [-Exclude <String[]>] [-Force] [-Credential <PSCredential>]
22-
[-InformationAction <ActionPreference>] [-InformationVariable <String>] [-UseTransaction]
23-
[-Delimiter <String>] [-Wait] [-Raw] [-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <String>]
19+
```powershell
20+
Get-Content [-Path] <String[]> [-ReadCount <Int64>] [-TotalCount <Int64>]
21+
[-Tail <Int32>] [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>]
22+
[-Force] [-Credential <PSCredential>] [-UseTransaction]
23+
[-Delimiter <String>] [-Wait] [-Raw]
24+
[-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <String>]
2425
[<CommonParameters>]
2526
```
2627

2728
### LiteralPath
28-
```
29-
Get-Content [-ReadCount <Int64>] [-TotalCount <Int64>] [-Tail <Int32>] -LiteralPath <String[]>
30-
[-Filter <String>] [-Include <String[]>] [-Exclude <String[]>] [-Force] [-Credential <PSCredential>]
31-
[-InformationAction <ActionPreference>] [-InformationVariable <String>] [-UseTransaction]
32-
[-Delimiter <String>] [-Wait] [-Raw] [-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <String>]
29+
```powershell
30+
Get-Content -LiteralPath <String[]> [-ReadCount <Int64>] [-TotalCount <Int64>]
31+
[-Tail <Int32>] [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>]
32+
[-Force] [-Credential <PSCredential>] [-UseTransaction]
33+
[-Delimiter <String>] [-Wait] [-Raw]
34+
[-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <String>]
3335
[<CommonParameters>]
3436
```
3537

@@ -263,37 +265,6 @@ Accept pipeline input: False
263265
Accept wildcard characters: False
264266
```
265267
266-
### -InformationAction
267-
Type a user name, such as "User01" or "Domain01\User01", or enter a PSCredential object, such as one generated by the Get-Credential cmdlet. If you type a user name, you will be prompted for a password.
268-
269-
This parameter is not supported by any providers that are installed with Windows PowerShell.```yaml
270-
Type: ActionPreference
271-
Parameter Sets: (All)
272-
Aliases: infa
273-
Accepted values: SilentlyContinue, Stop, Continue, Inquire, Ignore, Suspend
274-
275-
Required: False
276-
Position: Named
277-
Default value: None
278-
Accept pipeline input: False
279-
Accept wildcard characters: False
280-
```
281-
282-
### -InformationVariable
283-
Type a user name, such as "User01" or "Domain01\User01", or enter a PSCredential object, such as one generated by the Get-Credential cmdlet. If you type a user name, you will be prompted for a password.
284-
285-
This parameter is not supported by any providers that are installed with Windows PowerShell.```yaml
286-
Type: String
287-
Parameter Sets: (All)
288-
Aliases: iv
289-
290-
Required: False
291-
Position: Named
292-
Default value: None
293-
Accept pipeline input: False
294-
Accept wildcard characters: False
295-
```
296-
297268
### -LiteralPath
298269
Specifies the path to an item.
299270
Unlike the *Path* parameter, the value of *LiteralPath* is used exactly as it is typed.
@@ -324,7 +295,7 @@ Parameter Sets: Path
324295
Aliases:
325296

326297
Required: True
327-
Position: 1
298+
Position: 0
328299
Default value: None
329300
Accept pipeline input: True (ByPropertyName)
330301
Accept wildcard characters: False

0 commit comments

Comments
 (0)