开发者

How to avoid line breaks in PowerShell inline documentation

开发者 https://www.devze.com 2023-03-17 16:11 出处:网络
When I add the followin开发者_运维知识库g documentation to a PowerShell function: .PARAMETER Test

When I add the followin开发者_运维知识库g documentation to a PowerShell function:

.PARAMETER Test
The test parameter is nice
and it looks pretty cool.

I get this help when I use the Get-Help FunctionName -Parameter Test command:

-Test <Object>
    The test parameter is nice
    and it looks pretty cool.

I want it to be:

-Test <Object>
    The test parameter is nice and it looks pretty cool.

How can I avoid the line break?

I want the line breaks in my source code because long lines are hard to read. The sample has a short paragraph but my real inline documentation does have long paragraphs.


I don't see any other option than writing it in one line. If you have long lines try to break them after 80 characters or so.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号