Skip to content

Docgen fixes - #670

Merged
technoweenie merged 6 commits into
masterfrom
docgen-fixes
Sep 23, 2015
Merged

technoweenie merged 6 commits into
masterfrom
docgen-fixes

Conversation

@technoweenie

Copy link
Copy Markdown
Contributor

A few minor tweaks. The output of help subcmd and subcmd -h are now identical. Also, leading and ending linebreaks are consistent.

/cc @sinbad

@technoweenie technoweenie mentioned this pull request Sep 17, 2015
6 tasks done
Comment thread commands/commands.go

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

@sinbad

sinbad commented Sep 18, 2015

Copy link
Copy Markdown
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.

@technoweenie

Copy link
Copy Markdown
Contributor Author

Ok, merging this. We can always change the whitespace thing later :)

technoweenie added a commit that referenced this pull request Sep 23, 2015
@technoweenie
technoweenie merged commit 3feaca1 into master Sep 23, 2015
@technoweenie
technoweenie deleted the docgen-fixes branch September 23, 2015 17:00
@sinbad

sinbad commented Sep 29, 2015

Copy link
Copy Markdown
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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants