Skip to content

Commit 4357682

Browse files
authored
Merge pull request #133 from jeanfi/fix/typo
Fixed typo in the help command
2 parents 6bcc6f7 + 55f5c6d commit 4357682

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gh-md-toc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ show_help() {
323323
echo " --indent <NUM> Set indent size. Default: 3."
324324
echo " --insert Insert new TOC into original file. For local files only. Default: false."
325325
echo " See https://github.com/ekalinin/github-markdown-toc/issues/41 for details."
326-
echo " --no-backup Remove backup file. Set --insert as well. Defaul: false."
326+
echo " --no-backup Remove backup file. Set --insert as well. Default: false."
327327
echo " --hide-footer Do not write date & author of the last TOC update. Set --insert as well. Default: false."
328328
echo " --skip-header Hide entry of the topmost headlines. Default: false."
329329
echo " See https://github.com/ekalinin/github-markdown-toc/issues/125 for details."

tests/tests.bats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ test_help() {
127127
assert_equal "${lines[6]}" "Options:"
128128
assert_equal "${lines[7]}" " --indent <NUM> Set indent size. Default: 3."
129129
assert_equal "${lines[8]}" " --insert Insert new TOC into original file. For local files only. Default: false."
130-
assert_equal "${lines[10]}" " --no-backup Remove backup file. Set --insert as well. Defaul: false."
130+
assert_equal "${lines[10]}" " --no-backup Remove backup file. Set --insert as well. Default: false."
131131
assert_equal "${lines[11]}" " --hide-footer Do not write date & author of the last TOC update. Set --insert as well. Default: false."
132132
assert_equal "${lines[12]}" " --skip-header Hide entry of the topmost headlines. Default: false."
133133
assert_equal "${#lines[@]}" "14"

0 commit comments

Comments
 (0)