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.
1 parent 3df5689 commit a111b78Copy full SHA for a111b78
scripts/migrate-python-packages.ps1
@@ -28,7 +28,11 @@ if ($err) {
28
}
29
30
if ($opt.h -or $opt.help) {
31
- $content = Get-Content $PSCommandPath -Raw
+ # scoop_help removes the '#' character at the start of each line along with the whitespace
32
+ # character that follows, but if that whitespace character is a newline because it's just
33
+ # an empty line, then that empty line is completely removed.
34
+ # To combat that, we add a space to all lines that are just a '#'.
35
+ $content = (Get-Content $PSCommandPath -Raw) -replace '(?ms)^#$', '# '
36
$usage = usage $content
37
$help = scoop_help $content
38
return "$usage`n`n$help"
0 commit comments