开发者

How to avoid line breaks in PowerShell inline documentation

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜