-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcommand.js
51 lines (46 loc) · 1.1 KB
/
command.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
const optionDefinitions = [
{ name: "help", alias: "h", type: Boolean },
{ name: "url", alias: "u", type: String },
{ name: "output", alias: "o", type: String },
];
const sections = [
{
header: `Big Mouth`,
content: `Converts blog posts to mp3 audio :D
Usage:
node index --args
Examples:
node index -u=https://some-site/blog-post -o=pathToFile.mp3
node index --url=https://some-site/blog-post --output=pathToFile.mp3
`,
},
{
header: "Options",
optionList: [
{
name: "url",
alias: "u",
type: String,
description:
"required, Website url of blog post, example (https://some-site/blog-post)",
},
{
name: "output",
alias: "o",
type: String,
description:
"required, the path of the output file, example (./output.mp3)",
},
{
name: "help",
alias: "h",
type: Boolean,
description: "Print this usage guide.",
},
],
},
];
module.exports = {
sections: sections,
optionDefinitions: optionDefinitions,
};