小编Und*_*rse的帖子

PowerShell Get-Help filename.ps1仅显示文件名

在PowerShell 5.0 Get-Help中,不显示脚本的基于注释的帮助.而是仅打印文件名.

对于此代码,不显示注释块的值:

# dare.ps1
<# 
.SYNOPSIS
     The answer
.DESCRIPTION
     Answer to the Ultimate Question of Life, the Universe, and Everything.
#>
"The answer to the Ultimate Question of Life, the Universe and Everything is {0}" -f 42 
Run Code Online (Sandbox Code Playgroud)

命令

PS C:\> Get-Help .\dare.ps1
Run Code Online (Sandbox Code Playgroud)

产量

dare.ps1
Run Code Online (Sandbox Code Playgroud)

powershell

0
推荐指数
1
解决办法
103
查看次数

标签 统计

powershell ×1