You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my code I have a multiple line summary (comments) for my main method.
when I run my executable and ask for help myapp.exe --help the summary gets line wrapped.
I would like for each line in my summary to have a new line between.
I have tried every mechanism to make this work to no joy (also looked in the dragonfruit code a little) but couldn't find a quick fix.
Unless I'm missing something, but it's not as simple as that. You might have a summary that spans multiple lines (for code readability) but you really want the newlines removed in the help description, e.g.:
/// <summary>
/// This is a really long summary because my app is really great and I want
/// to say lots of great things about it in this summary so people will use it
/// all the time and then I will get famous.
/// </Summary>
So how do you to tell DragonFruit that it should keep the newline? You could use a special character e.g. -:
/// <summary>
/// - This is a really great app
/// - You can use it for all the things
/// </Summary>
But then you should support multiple levels of indentation, bullet points and so forth? Is this really worth it? For instance, node -h and npm -h don't have a description and dotnet -h has a super small description : Execute a .NET SDK command.
I don't think it needs to be complicated. just look for a newline? I don't think there is any need for detailed formatting in comments but I do see the need for line returns
But the newline won't work in every case - if you have a long Summary and have used newlines for code readability, you want these removed in the help command.
.NET XML documentation supports the <para> tag for explicitly specifying paragraphs. When it is compiled, separate paragraphs are separated by line breaks.
I ran the test, and saw that if there was only one para tag it did create the new line? But multiple it didn't, because it uses Value?
I don't have time to look into this further, but I did open a PR (only to my forks master, I don't want to clutter up the offical repo with a PR if I don't intend on following up), and anyone can feel free to take a look and base further work in this area on that.
I do think proper handling of doc string tags (list, para, etc) would help create nice help messages, which are nice to have. yringler/pull/1/
Hey folks, I have a local branch that iterates on @yringler's changes and updates the test to go with it. I'm unable to push the branch to create a PR though:
ERROR: Permission to dotnet/command-line-api.git denied to josephbateh.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I checked the Contributing doc and I don't see a way to request access. Is there a process to request access to push branches to the repo and create pull requests?
Typically you'd fork this repository, make your changes on a branch of your fork, and then send a pull request from your fork's branch to this repository.
Thanks @baronfel, followed that and created a PR: link. Hopefully I'm following the process properly, not sure if I'm supposed to link the PR to the issue.
Activity
marcusturewicz commentedon May 25, 2020
Unless I'm missing something, but it's not as simple as that. You might have a summary that spans multiple lines (for code readability) but you really want the newlines removed in the help description, e.g.:
So how do you to tell DragonFruit that it should keep the newline? You could use a special character e.g.
-:But then you should support multiple levels of indentation, bullet points and so forth? Is this really worth it? For instance,
node -handnpm -hdon't have a description anddotnet -hhas a super small description :Execute a .NET SDK command.drmcghee commentedon Jun 4, 2020
I don't think it needs to be complicated. just look for a newline? I don't think there is any need for detailed formatting in comments but I do see the need for line returns
marcusturewicz commentedon Jun 4, 2020
But the newline won't work in every case - if you have a long Summary and have used newlines for code readability, you want these removed in the help command.
asasine commentedon Nov 5, 2020
.NET XML documentation supports the
<para>tag for explicitly specifying paragraphs. When it is compiled, separate paragraphs are separated by line breaks.https://docs.microsoft.com/dotnet/csharp/programming-guide/xmldoc/para
yringler commentedon Nov 10, 2020
tags do not create newlines in --help from dragon fruit. That would be great if they did!
yringler commentedon Nov 10, 2020
I ran the test, and saw that if there was only one para tag it did create the new line? But multiple it didn't, because it uses Value?
I don't have time to look into this further, but I did open a PR (only to my forks master, I don't want to clutter up the offical repo with a PR if I don't intend on following up), and anyone can feel free to take a look and base further work in this area on that.
I do think proper handling of doc string tags (list, para, etc) would help create nice help messages, which are nice to have.
yringler/pull/1/
josephbateh commentedon Jan 29, 2022
Hey folks, I have a local branch that iterates on @yringler's changes and updates the test to go with it. I'm unable to push the branch to create a PR though:
I checked the Contributing doc and I don't see a way to request access. Is there a process to request access to push branches to the repo and create pull requests?
baronfel commentedon Jan 29, 2022
Typically you'd fork this repository, make your changes on a branch of your fork, and then send a pull request from your fork's branch to this repository.
josephbateh commentedon Jan 29, 2022
Thanks @baronfel, followed that and created a PR: link. Hopefully I'm following the process properly, not sure if I'm supposed to link the PR to the issue.