现在,示例部分已经编号。我希望他们有我自己的定制标题。
我有一个带有帮助的PS脚本- https://gist.github.com/MarkKharitonov/91698caf8c695902eacde2b6c7825bf1
有三个例子。第一项是:
.EXAMPLE
cd "D:\tmp\cantestr52 - 06-09-2017"
#############
# The User Config File
#############
PS D:\tmp\cantestr52 - 06-09-2017> cat C:\Users\mkharitonov\runcdb.config.ps1
$Sosex = "E:\Utils\sosex\64\sosex.dll"
$CDB = "e:\Program Files (x86)\Windows Kits\10\Debuggers\x64\cdb.exe"
$SymbolsCache = "E:\Symbols"它是这样呈现的:
-------------------------- EXAMPLE 1 --------------------------
C:\PS>cd "D:\tmp\cantestr52 - 06-09-2017"
#############
# The User Config File
#############
PS D:\tmp\cantestr52 - 06-09-2017> cat C:\Users\mkharitonov\runcdb.config.ps1
$Sosex = "E:\Utils\sosex\64\sosex.dll"
$CDB = "e:\Program Files (x86)\Windows Kits\10\Debuggers\x64\cdb.exe"
$SymbolsCache = "E:\Symbols"不太理想。我希望,用户Config,作为示例标题。但是,我不能直接将它放在.EXAMPLE下面,因为PowerShell将它与PS C:>放在前面-请参阅Powershell does not render my script help correctly。
有可能吗?
发布于 2017-08-10 20:26:41
不,用当前的帮助系统是不可能的。
https://stackoverflow.com/questions/45622867
复制相似问题