We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f1027ce + f9ec598 commit 143308eCopy full SHA for 143308e
src/Log-Rotate/public/Log-Rotate.ps1
@@ -88,7 +88,7 @@ function Log-Rotate {
88
,
89
[alias("u")]
90
[switch]$Usage
91
- ,
+ ,
92
[alias("v")]
93
[switch]$Version
94
)
@@ -115,10 +115,9 @@ function Log-Rotate {
115
$PSDefaultParameterValues['Out-File:Force'] = $true
116
$PSDefaultParameterValues['Invoke-Command:ErrorAction'] = 'Stop'
117
118
- # Prints miscellaneous information and exits
119
- $LogRotateVersion = '1.2.2'
+ # Prints version and exits
120
if ($Version) {
121
- Write-Output "Log-Rotate $LogRotateVersion"
+ Write-Output "Log-Rotate $( (Get-Module Log-Rotate).Version )"
122
return
123
}
124
if ($Help) {
0 commit comments