Skip to content

Commit 7a144aa

Browse files
authored
Merge pull request #19 from shadowbq/patch-1
Spelling and English grammar corrections
2 parents f5575d2 + 3dea3d4 commit 7a144aa

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

bin/summary.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ program
2222
.description("Generate a `SUMMARY.md` from a folder")
2323
.option("-r, --root [string]", "root folder, default is `.`")
2424
.option("-t, --title [string]", "book title, default is `Your Book Title`.")
25-
.option("-c, --catalog [list]", "catalog folders included book files, default is `all`.")
26-
.option("-i, --ignores [list]", "ignore folders that be excluded, default is `[]`.", list)
25+
.option("-c, --catalog [list]", "folders to be included in book, default is `all`.")
26+
.option("-i, --ignores [list]", "ignore patterns to be excluded, default is `[]`.", list)
2727
.option("-u, --unchanged [list]", "unchanged catalog like `request.js`, default is `[]`.")
28-
.option("-o, --outputfile [string]", "output file, defaut is `./SUMMARY.md`")
29-
.option("-s, --sortedBy [string]", "sorted by sortedBy, for example: `num-`, defaut is sorted by characters")
28+
.option("-o, --outputfile [string]", "output file, default is `./SUMMARY.md`")
29+
.option("-s, --sortedBy [string]", "sorted by sortedBy, for example: `num-`, default is sorted by characters")
3030
.option("-d, --disableTitleFormatting", "don't convert filename/folder name to start case (for example: `JavaScript` to `Java Script`), default is `false`")
31+
3132
.action(function(options) {
3233
// generate `SUMMARY.md`
3334
// Fixme
@@ -44,7 +45,7 @@ program
4445
.alias("md")
4546
.description("Get markdown from a remote url or a local html.")
4647
.option("-f, --file [file]", "path to file")
47-
.option("-l, --url [url]", "artical`s url")
48+
.option("-l, --url [url]", "articles`s url")
4849
.option("-t, --target [target]", "target to be saved")
4950
.option("-s, --selector [selector]", "DOM element selector")
5051
.action(function(options) {
@@ -55,9 +56,9 @@ program
5556
program
5657
.command("convert")
5758
.alias("cv")
58-
.description("Todo: Convert articals between Simplified and Traditional Chinese.")
59+
.description("Todo: Convert articles between Simplified and Traditional Chinese.")
5960
.option("-f, --file [file]", "path to file")
60-
.option("-l, --language [language]", "artical`s language")
61+
.option("-l, --language [language]", "articles`s language")
6162
.option("-t, --target [target]", "target to be saved")
6263
.action(function(options) {
6364
convert(options);

0 commit comments

Comments
 (0)