Skip to content

Commit bb408ec

Browse files
committed
print help also if no arguments given
1 parent 758b2c3 commit bb408ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gh-md-toc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ gh_toc_get_filename() {
118118
gh_toc_app() {
119119
local app_name="gh-md-toc"
120120

121-
if [ "$1" = '--help' ]; then
121+
if [ "$1" = '--help' ] || [ $# -eq 0 ] ; then
122122
echo "GitHub TOC generator ($app_name): $gh_toc_version"
123123
echo ""
124124
echo "Usage:"

0 commit comments

Comments
 (0)