[PSS 2015] Renaming variables: Parameter
Posted: Tue Dec 08, 2015 8:44 am
Hi guys,
another small request, to make a features that already exists work more smoothly:
When renaming the parameter of a function, could you also rename ...
... $PSBoundParameters entries?
... Examples in the Help section?
... Parameter documentation in the Help section?
Example of current State
Before Rename
After Rename
Cheers,
Bosparan
another small request, to make a features that already exists work more smoothly:
When renaming the parameter of a function, could you also rename ...
... $PSBoundParameters entries?
... Examples in the Help section?
... Parameter documentation in the Help section?
Example of current State
Before Rename
- function Get-Test
- {
- <#
- .SYNOPSIS
- A brief description of the Get-Test function.
- .DESCRIPTION
- A detailed description of the Get-Test function.
- .PARAMETER Foo
- A description of the Foo parameter.
- .EXAMPLE
- PS C:\> Get-Test -Foo $value1
- .NOTES
- BlaBla
- .LINK
- Link to Website.
- #>
- [CmdletBinding()]
- Param (
- $Foo
- )
- if ($PSBoundParameters['Foo'])
- {
- }
- }
- function Get-Test
- {
- <#
- .SYNOPSIS
- A brief description of the Get-Test function.
- .DESCRIPTION
- A detailed description of the Get-Test function.
- .PARAMETER Foo
- A description of the Foo parameter.
- .EXAMPLE
- PS C:\> Get-Test -Foo $value1
- .NOTES
- BlaBla
- .LINK
- Link to Website.
- #>
- [CmdletBinding()]
- Param (
- $Bar
- )
- if ($PSBoundParameters['Foo'])
- {
- }
- }
Bosparan