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
Improve --help output + make CI prevent copies of --help output from going out-of-sync #80
Conversation
a488682
to
d6ae6b1
Compare
extract-usage-from-readme.sh
Outdated
set -e | ||
set -o pipefail | ||
|
||
fgrep -A55 usage: README.rst | sed 's,^ ,,' |
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.
Hardcoding 55 as the length of the help output seems hard to maintain. Perhaps you could do something like this?
awk '/usage:/ { print; flag = 1; next } /Usage Examples/ { flag = 0 } flag { print }' README.rst
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 agree that this approach would probably require fewer updates to file extract-usage-from-readme.sh
in the future. I have applied that idea of yours now, could you have another look?
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.
Looks good!
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.
Okay great! Let's see how happy @esc is with the latest version.
d6ae6b1
to
807967f
Compare
807967f
to
68bb73b
Compare
I have turned |
6bc9a53
to
810b4bf
Compare
810b4bf
to
c90b224
Compare
$ ./generate-man-page.sh > git-big-picture.1
c90b224
to
ec8d062
Compare
e0f816b
to
829af64
Compare
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.
The stuff about bifurcation commits looks good and I like the wording. It's not something in everyones git vocabulary, but I never found a better term for this kind of construct. Thank you for implementing it. I don't know much about manpages, so I can't comment much on that except for: LGTM! 👍
@d-torrance what do you think?