-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consistently wrap help and subcommand messages(with refactoring) #2174
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry took me a bit of time to review.
8ebb6a3
to
3aa89ce
Compare
1ec60b1
to
bf61169
Compare
Done. Now it's easier to review. (Relatively XD) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated your code a bit. There's still a little bit inefficiency but I will deal with it later.
bors r+ |
🕐 Waiting for PR status (Github check) to be set, probably by CI. Bors will automatically try to run when all required PR statuses are set. |
Build succeeded: |
Closes #2170
First commit and the third refactored the arg writing and subcomand writing without changing clap's behaviour. Which is needed because I think these code is a bit rotten(unnecessary side effects occurred in output functions).
Second commit introduces the help message wrap checking(refractoring above make proving the wrap checking's correctness a lot easier).