diff options
author | typebrook <typebrook@gmail.com> | 2020-04-06 11:23:57 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2020-04-07 00:04:44 +0800 |
commit | 7870b029ccf86ef2fed932ac7e2a0295c2b799de (patch) | |
tree | bab5d2a0336fdab0fb3f11dd66b858bf372f052e | |
parent | 38af58dad1edd1d71716e5684354e567efaa2679 (diff) |
Refactor helper message for general use case
-rwxr-xr-x | gist | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -4,6 +4,7 @@ | |||
4 | # License: MIT | 4 | # License: MIT |
5 | # https://gist.github.com/typebrook/b0d2e7e67aa50298fdf8111ae7466b56 | 5 | # https://gist.github.com/typebrook/b0d2e7e67aa50298fdf8111ae7466b56 |
6 | # | 6 | # |
7 | # -- | ||
7 | # gist | 8 | # gist |
8 | # Description: Manage your gists with git and Github API v3 | 9 | # Description: Manage your gists with git and Github API v3 |
9 | # Usage: gist [command] [<args>] | 10 | # Usage: gist [command] [<args>] |
@@ -693,7 +694,7 @@ _edit_gist() { | |||
693 | 694 | ||
694 | # Print helper message | 695 | # Print helper message |
695 | usage() { | 696 | usage() { |
696 | sed -E -n -e ' /^$/ q; 7,$ s/^# //p' "$0" | 697 | sed -E -n -e ' /^$/ q; 1,/^# --/ d; s/^# //p' "$0" |
697 | } | 698 | } |
698 | 699 | ||
699 | # Check remote urls of all repos match current protocol in configuration file | 700 | # Check remote urls of all repos match current protocol in configuration file |