Skip to content

Commit 097b9aa

Browse files
committed
fix: fix formatting in help message
The GitHub link itself was not visible in the terminal due to bad color
1 parent bcf6caf commit 097b9aa

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

cli-tips.sh

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,16 @@ error() {
2626
}
2727

2828
show_help() {
29-
echo -e "\e[1mUsage:\e[0m $(basename "$0") \e[1;34m[flags]\e[0m \e[1;32m[options]\e[0m"
29+
echo -e "\e[1mUsage\e[0m: $(basename "$0") \e[1;34m[flags]\e[0m \e[1;32m[options]\e[0m"
3030
echo
31-
echo -e "\e[1mOptions:\e[0m"
32-
echo -e " \e[1;34m-h, --help\e[0m Show this help message and exit"
33-
echo -e " \e[1;34m--about\e[0m Specify a keyword to filter tips"
31+
echo -e "\e[1mOptions\e[0m:"
32+
echo -e " \e[1;34m-h, --help\e[0m Show this help message and exit"
33+
echo -e " \e[1;34m--about\e[0m Specify a keyword to filter tips"
3434
echo
35-
echo -e "\n"
36-
echo -e "\e[1mExamples:\e[0m"
35+
echo -e "\e[1mExamples\e[0m:"
3736
echo -e " $(basename "$0") \e[1;34m--about\e[0m git"
38-
echo -e "\n"
39-
echo -e "\e[1mGitHub:\e[0m \e[0;30mhttps://github.com/cli-stuff/cli-tips\e[0m"
37+
echo
38+
echo -e "\e[1mGitHub\e[0m: https://github.com/cli-stuff/cli-tips\e[0m"
4039
}
4140

4241
# Parse command-line options

0 commit comments

Comments
 (0)