Repository navigation
Docgen fixes - #670
Merged
Merged
Docgen fixes#670
Conversation
Contributor
There was a problem hiding this comment.
Hmm, this puts the command snug under the prompt which I find harder to read, e.g.:
steve@Stevens-MacBook-Pro ~/p/G/s/g/g/git-lfs> git lfs pull --help
git lfs pull [options] [<remote>]
Download Git LFS objects for the currently checked out ref, and update
I find this harder to read than
steve@Stevens-MacBook-Pro ~/p/G/s/g/g/git-lfs> git lfs pull --help
git lfs pull [options] [<remote>]
Download Git LFS objects for the currently checked out ref, and update
Contributor
Author
There was a problem hiding this comment.
I agree that whitespace is usually good. However in this case, the empty space looks off to me:
$ git help
usage: git [--version] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
[-c name=value] [--help]
<command> [<args>]
$ ruby -h
Usage: ruby [switches] [--] [programfile] [arguments]
-0[octal] specify record separator (\0, if no argument)
-a autosplit mode with -n or -p (splits $_ into $F)
Contributor
|
👍 I originally didn't remove the "Short" entries because Cobra generated a nice command list from them, but that's defunct since I started handling the root help topic. Nice catch on the br's. |
Contributor
Author
|
Ok, merging this. We can always change the whitespace thing later :) |
Contributor
|
Yeah, having reviewed other command help I see not having the spare line is normal, just looked odd to me after getting used to it being there :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A few minor tweaks. The output of
help subcmdandsubcmd -hare now identical. Also, leading and ending linebreaks are consistent./cc @sinbad