Skip to content

Commit 7157202

Browse files
davidsmatlaksdwheeler
authored andcommitted
Fixes #4954 - Fixed cmdlet ParameterSet spacing part 2 (#4962)
* issue 4954 p2 * corrections * fixed space
1 parent 63e0da1 commit 7157202

File tree

16 files changed

+107
-103
lines changed

16 files changed

+107
-103
lines changed

reference/5.1/Microsoft.PowerShell.Core/Update-Help.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ Downloads and installs the newest help files on your computer.
2020

2121
```
2222
Update-Help [[-Module] <String[]>] [-FullyQualifiedModule <ModuleSpecification[]>]
23-
[[-SourcePath] <String[]>] [-Recurse] [[-UICulture] <CultureInfo[]>] [-Credential <PSCredential>]
24-
[-UseDefaultCredentials] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
23+
[[-SourcePath] <String[]>] [-Recurse] [[-UICulture] <CultureInfo[]>] [-Credential <PSCredential>]
24+
[-UseDefaultCredentials] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
2525
```
2626

2727
### LiteralPath
2828

2929
```
3030
Update-Help [[-Module] <String[]>] [-FullyQualifiedModule <ModuleSpecification[]>]
31-
[-LiteralPath <String[]>] [-Recurse] [[-UICulture] <CultureInfo[]>] [-Credential <PSCredential>]
32-
[-UseDefaultCredentials] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
31+
[-LiteralPath <String[]>] [-Recurse] [[-UICulture] <CultureInfo[]>] [-Credential <PSCredential>]
32+
[-UseDefaultCredentials] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
3333
```
3434

3535
## DESCRIPTION
@@ -251,7 +251,7 @@ foreach ($mModule in $Modules)
251251
if (Test-Path $mdir\*helpinfo.xml)
252252
{
253253
$mName=$mModule.Name
254-
$mNodes = dir $mdir\*helpinfo.xml -ErrorAction SilentlyContinue |
254+
$mNodes = dir $mdir\*helpinfo.xml -ErrorAction SilentlyContinue |
255255
Select-Xml -Namespace $HelpInfoNamespace -XPath "//helpInfo:UICulture"
256256
foreach ($mNode in $mNodes)
257257
{
@@ -572,15 +572,15 @@ Only members of the Administrators group on the computer can update help for the
572572
modules, the commands that are installed together with PowerShell, and for modules in the
573573
`$PSHOME\Modules` folder. If you don't have permission to update help files, you can read the help
574574
files online. For example, `Get-Help Update-Help -Online`.
575-
575+
576576
Modules are the smallest unit of updatable help. You can't update help for a particular cmdlet. To
577577
find the module that contains a particular cmdlet, use the **ModuleName** property of the
578578
`Get-Command` cmdlet, for example, `(Get-Command Update-Help).ModuleName`.
579-
579+
580580
Because help files are installed in the module directory, the `Update-Help` cmdlet can install
581581
updated help file only for modules that are installed on the computer. However, the `Save-Help`
582582
cmdlet can save help for modules that aren't installed on the computer.
583-
583+
584584
If `Update-Help` can't find updated help files for a module, or can't find updated help in the
585585
specified language, it continues silently without displaying an error message. To see status and
586586
progress details, use the **Verbose** parameter.
@@ -596,7 +596,7 @@ for HTTP and port 443 for HTTPS.
596596

597597
`Update-Help` supports all modules and the PowerShell Core snap-ins. It doesn't support any other
598598
snap-ins.
599-
599+
600600
To update help for a module in a location that isn't listed in the `$env:PSModulePath` environment
601601
variable, import the module into the current session and then run an `Update-Help` command. Run
602602
`Update-Help` without parameters or use the **Module** parameter to specify the module name. The

reference/5.1/Microsoft.PowerShell.Diagnostics/Get-WinEvent.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,49 +19,49 @@ Gets events from event logs and event tracing log files on local and remote comp
1919

2020
```
2121
Get-WinEvent [[-LogName] <String[]>] [-MaxEvents <Int64>] [-ComputerName <String>]
22-
[-Credential <PSCredential>] [-FilterXPath <String>] [-Force] [-Oldest] [<CommonParameters>]
22+
[-Credential <PSCredential>] [-FilterXPath <String>] [-Force] [-Oldest] [<CommonParameters>]
2323
```
2424

2525
### ListLogSet
2626

2727
```
2828
Get-WinEvent [-ListLog] <String[]> [-ComputerName <String>] [-Credential <PSCredential>] [-Force]
29-
[<CommonParameters>]
29+
[<CommonParameters>]
3030
```
3131

3232
### ListProviderSet
3333

3434
```
3535
Get-WinEvent [-ListProvider] <String[]> [-ComputerName <String>] [-Credential <PSCredential>]
36-
[<CommonParameters>]
36+
[<CommonParameters>]
3737
```
3838

3939
### GetProviderSet
4040

4141
```
4242
Get-WinEvent [-ProviderName] <String[]> [-MaxEvents <Int64>] [-ComputerName <String>]
43-
[-Credential <PSCredential>] [-FilterXPath <String>] [-Force] [-Oldest] [<CommonParameters>]
43+
[-Credential <PSCredential>] [-FilterXPath <String>] [-Force] [-Oldest] [<CommonParameters>]
4444
```
4545

4646
### FileSet
4747

4848
```
4949
Get-WinEvent [-Path] <String[]> [-MaxEvents <Int64>] [-Credential <PSCredential>]
50-
[-FilterXPath <String>] [-Oldest] [<CommonParameters>]
50+
[-FilterXPath <String>] [-Oldest] [<CommonParameters>]
5151
```
5252

5353
### HashQuerySet
5454

5555
```
5656
Get-WinEvent [-MaxEvents <Int64>] [-ComputerName <String>] [-Credential <PSCredential>]
57-
[-FilterHashtable] <Hashtable[]> [-Force] [-Oldest] [<CommonParameters>]
57+
[-FilterHashtable] <Hashtable[]> [-Force] [-Oldest] [<CommonParameters>]
5858
```
5959

6060
### XmlQuerySet
6161

6262
```
63-
Get-WinEvent [-MaxEvents <Int64>] [-ComputerName <String>] [-Credential <PSCredential>] [-FilterXml]
64-
<XmlDocument> [-Oldest] [<CommonParameters>]
63+
Get-WinEvent [-MaxEvents <Int64>] [-ComputerName <String>] [-Credential <PSCredential>]
64+
[-FilterXml] <XmlDocument> [-Oldest] [<CommonParameters>]
6565
```
6666

6767
## DESCRIPTION

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ Adds content to the specified items, such as adding words to a file.
1717
### Path (Default)
1818

1919
```
20-
Add-Content [-Path] <string[]> [-Value] <Object[]> [-PassThru] [-Filter <string>] [-Include
21-
<string[]>] [-Exclude <string[]>] [-Force] [-Credential <pscredential>] [-WhatIf] [-Confirm]
22-
[-UseTransaction] [-NoNewline] [-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <string>]
23-
[<CommonParameters>]
20+
Add-Content [-Path] <string[]> [-Value] <Object[]> [-PassThru] [-Filter <string>]
21+
[-Include <string[]>] [-Exclude <string[]>] [-Force] [-Credential <pscredential>] [-WhatIf]
22+
[-Confirm] [-UseTransaction] [-NoNewline] [-Encoding <FileSystemCmdletProviderEncoding>]
23+
[-Stream <string>] [<CommonParameters>]
2424
```
2525

2626
### LiteralPath
2727

2828
```
29-
Add-Content [-Value] <Object[]> -LiteralPath <string[]> [-PassThru] [-Filter <string>] [-Include
30-
<string[]>] [-Exclude <string[]>] [-Force] [-Credential <pscredential>] [-WhatIf] [-Confirm]
31-
[-UseTransaction] [-NoNewline] [-Encoding <FileSystemCmdletProviderEncoding>] [-Stream <string>]
32-
[<CommonParameters>]
29+
Add-Content [-Value] <Object[]> -LiteralPath <string[]> [-PassThru] [-Filter <string>]
30+
[-Include <string[]>] [-Exclude <string[]>] [-Force] [-Credential <pscredential>] [-WhatIf]
31+
[-Confirm] [-UseTransaction] [-NoNewline] [-Encoding <FileSystemCmdletProviderEncoding>]
32+
[-Stream <string>] [<CommonParameters>]
3333
```
3434

3535
## DESCRIPTION

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ Writes new content or replaces existing content in a file.
1818

1919
```
2020
Set-Content [-Path] <string[]> [-Value] <Object[]> [-PassThru] [-Filter <string>]
21-
[-Include <string[]>] [-Exclude <string[]>] [-Force] [-Credential <pscredential>] [-WhatIf]
22-
[-Confirm] [-UseTransaction] [-NoNewline] [-Encoding <FileSystemCmdletProviderEncoding>]
23-
[-Stream <string>] [<CommonParameters>]
21+
[-Include <string[]>] [-Exclude <string[]>] [-Force] [-Credential <pscredential>] [-WhatIf]
22+
[-Confirm] [-UseTransaction] [-NoNewline] [-Encoding <FileSystemCmdletProviderEncoding>]
23+
[-Stream <string>] [<CommonParameters>]
2424
```
2525

2626
### LiteralPath
2727

2828
```
2929
Set-Content [-Value] <Object[]> -LiteralPath <string[]> [-PassThru] [-Filter <string>]
30-
[-Include <string[]>] [-Exclude <string[]>] [-Force] [-Credential <pscredential>] [-WhatIf]
31-
[-Confirm] [-UseTransaction] [-NoNewline] [-Encoding <FileSystemCmdletProviderEncoding>]
32-
[-Stream <string>] [<CommonParameters>]
30+
[-Include <string[]>] [-Exclude <string[]>] [-Force] [-Credential <pscredential>] [-WhatIf]
31+
[-Confirm] [-UseTransaction] [-NoNewline] [-Encoding <FileSystemCmdletProviderEncoding>]
32+
[-Stream <string>] [<CommonParameters>]
3333
```
3434

3535
## DESCRIPTION

reference/5.1/Microsoft.PowerShell.Security/Set-ExecutionPolicy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Sets the PowerShell execution policies for Windows computers.
2020

2121
```
2222
Set-ExecutionPolicy [-ExecutionPolicy] <ExecutionPolicy> [[-Scope] <ExecutionPolicyScope>] [-Force]
23-
[-WhatIf] [-Confirm] [<CommonParameters>]
23+
[-WhatIf] [-Confirm] [<CommonParameters>]
2424
```
2525

2626
## DESCRIPTION

reference/6/Microsoft.PowerShell.Core/Update-Help.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,18 @@ Downloads and installs the newest help files on your computer.
2020

2121
```
2222
Update-Help [[-Module] <String[]>] [-FullyQualifiedModule <ModuleSpecification[]>]
23-
[[-SourcePath] <String[]>] [-Recurse] [[-UICulture] <CultureInfo[]>] [-Credential <PSCredential>]
24-
[-UseDefaultCredentials] [-Force] [-Scope <UpdateHelpScope>] [-WhatIf] [-Confirm]
25-
[<CommonParameters>]
23+
[[-SourcePath] <String[]>] [-Recurse] [[-UICulture] <CultureInfo[]>] [-Credential <PSCredential>]
24+
[-UseDefaultCredentials] [-Force] [-Scope <UpdateHelpScope>] [-WhatIf] [-Confirm]
25+
[<CommonParameters>]
2626
```
2727

2828
### LiteralPath
2929

3030
```
3131
Update-Help [[-Module] <String[]>] [-FullyQualifiedModule <ModuleSpecification[]>]
32-
[-LiteralPath <String[]>] [-Recurse] [[-UICulture] <CultureInfo[]>] [-Credential <PSCredential>]
33-
[-UseDefaultCredentials] [-Force] [-Scope <UpdateHelpScope>] [-WhatIf] [-Confirm]
34-
[<CommonParameters>]
32+
[-LiteralPath <String[]>] [-Recurse] [[-UICulture] <CultureInfo[]>] [-Credential <PSCredential>]
33+
[-UseDefaultCredentials] [-Force] [-Scope <UpdateHelpScope>] [-WhatIf] [-Confirm]
34+
[<CommonParameters>]
3535
```
3636

3737
## DESCRIPTION
@@ -211,7 +211,7 @@ foreach ($mModule in $Modules)
211211
if (Test-Path $mdir\*helpinfo.xml)
212212
{
213213
$mName=$mModule.Name
214-
$mNodes = dir $mdir\*helpinfo.xml -ErrorAction SilentlyContinue |
214+
$mNodes = dir $mdir\*helpinfo.xml -ErrorAction SilentlyContinue |
215215
Select-Xml -Namespace $HelpInfoNamespace -XPath "//helpInfo:UICulture"
216216
foreach ($mNode in $mNodes)
217217
{
@@ -559,15 +559,15 @@ Only members of the Administrators group on the computer can update help for the
559559
modules, the commands that are installed together with PowerShell, and for modules in the
560560
`$PSHOME\Modules` folder. If you don't have permission to update help files, you can read the help
561561
files online. For example, `Get-Help Update-Help -Online`.
562-
562+
563563
Modules are the smallest unit of updatable help. You can't update help for a particular cmdlet. To
564564
find the module that contains a particular cmdlet, use the **ModuleName** property of the
565565
`Get-Command` cmdlet, for example, `(Get-Command Update-Help).ModuleName`.
566-
566+
567567
Because help files are installed in the module directory, the `Update-Help` cmdlet can install
568568
updated help file only for modules that are installed on the computer. However, the `Save-Help`
569569
cmdlet can save help for modules that aren't installed on the computer.
570-
570+
571571
If `Update-Help` can't find updated help files for a module, or can't find updated help in the
572572
specified language, it continues silently without displaying an error message. To see status and
573573
progress details, use the **Verbose** parameter.
@@ -583,7 +583,7 @@ for HTTP and port 443 for HTTPS.
583583

584584
`Update-Help` supports all modules and the PowerShell Core snap-ins. It doesn't support any other
585585
snap-ins.
586-
586+
587587
To update help for a module in a location that isn't listed in the `$env:PSModulePath` environment
588588
variable, import the module into the current session and then run an `Update-Help` command. Run
589589
`Update-Help` without parameters or use the **Module** parameter to specify the module name. The

reference/6/Microsoft.PowerShell.Diagnostics/Get-WinEvent.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,49 +19,49 @@ Gets events from event logs and event tracing log files on local and remote comp
1919

2020
```
2121
Get-WinEvent [[-LogName] <String[]>] [-MaxEvents <Int64>] [-ComputerName <String>]
22-
[-Credential <PSCredential>] [-FilterXPath <String>] [-Force] [-Oldest] [<CommonParameters>]
22+
[-Credential <PSCredential>] [-FilterXPath <String>] [-Force] [-Oldest] [<CommonParameters>]
2323
```
2424

2525
### ListLogSet
2626

2727
```
2828
Get-WinEvent [-ListLog] <String[]> [-ComputerName <String>] [-Credential <PSCredential>] [-Force]
29-
[<CommonParameters>]
29+
[<CommonParameters>]
3030
```
3131

3232
### ListProviderSet
3333

3434
```
3535
Get-WinEvent [-ListProvider] <String[]> [-ComputerName <String>] [-Credential <PSCredential>]
36-
[<CommonParameters>]
36+
[<CommonParameters>]
3737
```
3838

3939
### GetProviderSet
4040

4141
```
4242
Get-WinEvent [-ProviderName] <String[]> [-MaxEvents <Int64>] [-ComputerName <String>]
43-
[-Credential <PSCredential>] [-FilterXPath <String>] [-Force] [-Oldest] [<CommonParameters>]
43+
[-Credential <PSCredential>] [-FilterXPath <String>] [-Force] [-Oldest] [<CommonParameters>]
4444
```
4545

4646
### FileSet
4747

4848
```
4949
Get-WinEvent [-Path] <String[]> [-MaxEvents <Int64>] [-Credential <PSCredential>]
50-
[-FilterXPath <String>] [-Oldest] [<CommonParameters>]
50+
[-FilterXPath <String>] [-Oldest] [<CommonParameters>]
5151
```
5252

5353
### HashQuerySet
5454

5555
```
5656
Get-WinEvent [-MaxEvents <Int64>] [-ComputerName <String>] [-Credential <PSCredential>]
57-
[-FilterHashtable] <Hashtable[]> [-Force] [-Oldest] [<CommonParameters>]
57+
[-FilterHashtable] <Hashtable[]> [-Force] [-Oldest] [<CommonParameters>]
5858
```
5959

6060
### XmlQuerySet
6161

6262
```
63-
Get-WinEvent [-MaxEvents <Int64>] [-ComputerName <String>] [-Credential <PSCredential>] [-FilterXml]
64-
<XmlDocument> [-Oldest] [<CommonParameters>]
63+
Get-WinEvent [-MaxEvents <Int64>] [-ComputerName <String>] [-Credential <PSCredential>]
64+
[-FilterXml] <XmlDocument> [-Oldest] [<CommonParameters>]
6565
```
6666

6767
## DESCRIPTION

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ Adds content to the specified items, such as adding words to a file.
1818

1919
```
2020
Add-Content [-Path] <string[]> [-Value] <Object[]> [-PassThru] [-Filter <string>]
21-
[-Include <string[]>] [-Exclude <string[]>] [-Force] [-Credential <pscredential>] [-WhatIf]
22-
[-Confirm] [-NoNewline] [-Encoding <Encoding>] [-AsByteStream] [-Stream <string>]
23-
[<CommonParameters>]
21+
[-Include <string[]>] [-Exclude <string[]>] [-Force] [-Credential <pscredential>] [-WhatIf]
22+
[-Confirm] [-NoNewline] [-Encoding <Encoding>] [-AsByteStream] [-Stream <string>]
23+
[<CommonParameters>]
2424
```
2525

2626
### LiteralPath
2727

2828
```
2929
Add-Content [-Value] <Object[]> -LiteralPath <string[]> [-PassThru] [-Filter <string>]
30-
[-Include <string[]>] [-Exclude <string[]>] [-Force] [-Credential <pscredential>] [-WhatIf]
31-
[-Confirm] [-NoNewline] [-Encoding <Encoding>] [-AsByteStream] [-Stream <string>]
32-
[<CommonParameters>]
30+
[-Include <string[]>] [-Exclude <string[]>] [-Force] [-Credential <pscredential>] [-WhatIf]
31+
[-Confirm] [-NoNewline] [-Encoding <Encoding>] [-AsByteStream] [-Stream <string>]
32+
[<CommonParameters>]
3333
```
3434

3535
## DESCRIPTION

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ Writes new content or replaces existing content in a file.
1818

1919
```
2020
Set-Content [-Path] <string[]> [-Value] <Object[]> [-PassThru] [-Filter <string>]
21-
[-Include <string[]>] [-Exclude <string[]>] [-Force] [-Credential <pscredential>]
22-
[-WhatIf] [-Confirm] [-NoNewline] [-Encoding <Encoding>][-AsByteStream] [-Stream <string>]
23-
[<CommonParameters>]
21+
[-Include <string[]>] [-Exclude <string[]>] [-Force] [-Credential <pscredential>]
22+
[-WhatIf] [-Confirm] [-NoNewline] [-Encoding <Encoding>] [-AsByteStream] [-Stream <string>]
23+
[<CommonParameters>]
2424
```
2525

2626
### LiteralPath
2727

2828
```
2929
Set-Content [-Value] <Object[]> -LiteralPath <string[]> [-PassThru] [-Filter <string>]
30-
[-Include <string[]>] [-Exclude <string[]>] [-Force] [-Credential <pscredential>]
31-
[-WhatIf] [-Confirm] [-NoNewline] [-Encoding <Encoding>][-AsByteStream] [-Stream <string>]
32-
[<CommonParameters>]
30+
[-Include <string[]>] [-Exclude <string[]>] [-Force] [-Credential <pscredential>]
31+
[-WhatIf] [-Confirm] [-NoNewline] [-Encoding <Encoding>] [-AsByteStream] [-Stream <string>]
32+
[<CommonParameters>]
3333
```
3434

3535
## DESCRIPTION

reference/6/Microsoft.PowerShell.Security/Set-ExecutionPolicy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Sets the PowerShell execution policies for Windows computers.
2020

2121
```
2222
Set-ExecutionPolicy [-ExecutionPolicy] <ExecutionPolicy> [[-Scope] <ExecutionPolicyScope>] [-Force]
23-
[-WhatIf] [-Confirm] [<CommonParameters>]
23+
[-WhatIf] [-Confirm] [<CommonParameters>]
2424
```
2525

2626
## DESCRIPTION

0 commit comments

Comments
 (0)