@@ -4,17 +4,17 @@ The actual snapshot is saved in `cli.test.js.snap`.
4
4
5
5
Generated by [ AVA] ( https://avajs.dev ) .
6
6
7
- ## rejects promise due to error on passing in an unknown command
7
+ ## shows up help message without any args
8
8
9
9
> Snapshot 1
10
10
11
- `Usage: docsify <init|serve> < path> ␊
11
+ `Usage: docsify <init|serve> [ path] ␊
12
12
␊
13
13
Commands:␊
14
14
docsify init [path] Creates new docs [aliases: i]␊
15
15
docsify serve [path] Run local server to preview site. [aliases: s]␊
16
- docsify start < path> Server for SSR␊
17
- docsify generate < path> Docsify's generators [aliases: g]␊
16
+ docsify start [ path] Server for SSR␊
17
+ docsify generate [ path] Docsify's generators [aliases: g]␊
18
18
␊
19
19
Global Options␊
20
20
--help, -h Show help [boolean]␊
@@ -27,19 +27,19 @@ Generated by [AVA](https://avajs.dev).
27
27
Development:␊
28
28
https://github.com/docsifyjs/docsify-cli/blob/master/CONTRIBUTING.md␊
29
29
␊
30
- Unknown argument: junkcmd `
30
+ [ERROR] 0 arguments passed. Please specify a command `
31
31
32
- ## shows help with --help flag
32
+ ## shows help with -h flag
33
33
34
34
> Snapshot 1
35
35
36
- `Usage: docsify <init|serve> < path> ␊
36
+ `Usage: docsify <init|serve> [ path] ␊
37
37
␊
38
38
Commands:␊
39
39
docsify init [path] Creates new docs [aliases: i]␊
40
40
docsify serve [path] Run local server to preview site. [aliases: s]␊
41
- docsify start < path> Server for SSR␊
42
- docsify generate < path> Docsify's generators [aliases: g]␊
41
+ docsify start [ path] Server for SSR␊
42
+ docsify generate [ path] Docsify's generators [aliases: g]␊
43
43
␊
44
44
Global Options␊
45
45
--help, -h Show help [boolean]␊
@@ -52,17 +52,17 @@ Generated by [AVA](https://avajs.dev).
52
52
Development:␊
53
53
https://github.com/docsifyjs/docsify-cli/blob/master/CONTRIBUTING.md`
54
54
55
- ## shows help with -h flag
55
+ ## shows help with --help flag
56
56
57
57
> Snapshot 1
58
58
59
- `Usage: docsify <init|serve> < path> ␊
59
+ `Usage: docsify <init|serve> [ path] ␊
60
60
␊
61
61
Commands:␊
62
62
docsify init [path] Creates new docs [aliases: i]␊
63
63
docsify serve [path] Run local server to preview site. [aliases: s]␊
64
- docsify start < path> Server for SSR␊
65
- docsify generate < path> Docsify's generators [aliases: g]␊
64
+ docsify start [ path] Server for SSR␊
65
+ docsify generate [ path] Docsify's generators [aliases: g]␊
66
66
␊
67
67
Global Options␊
68
68
--help, -h Show help [boolean]␊
@@ -75,17 +75,35 @@ Generated by [AVA](https://avajs.dev).
75
75
Development:␊
76
76
https://github.com/docsifyjs/docsify-cli/blob/master/CONTRIBUTING.md`
77
77
78
- ## shows up help message without any args
78
+ ## shows version information with -v flag
79
+
80
+ > Snapshot 1
81
+
82
+ `␊
83
+ docsify-cli version:␊
84
+ 4.4.4␊
85
+ `
86
+
87
+ ## shows version information with --version flag
88
+
89
+ > Snapshot 1
90
+
91
+ `␊
92
+ docsify-cli version:␊
93
+ 4.4.4␊
94
+ `
95
+
96
+ ## rejects promise due to error on passing in an unknown command
79
97
80
98
> Snapshot 1
81
99
82
- `Usage: docsify <init|serve> < path> ␊
100
+ `Usage: docsify <init|serve> [ path] ␊
83
101
␊
84
102
Commands:␊
85
103
docsify init [path] Creates new docs [aliases: i]␊
86
104
docsify serve [path] Run local server to preview site. [aliases: s]␊
87
- docsify start < path> Server for SSR␊
88
- docsify generate < path> Docsify's generators [aliases: g]␊
105
+ docsify start [ path] Server for SSR␊
106
+ docsify generate [ path] Docsify's generators [aliases: g]␊
89
107
␊
90
108
Global Options␊
91
109
--help, -h Show help [boolean]␊
@@ -98,22 +116,4 @@ Generated by [AVA](https://avajs.dev).
98
116
Development:␊
99
117
https://github.com/docsifyjs/docsify-cli/blob/master/CONTRIBUTING.md␊
100
118
␊
101
- [ERROR] 0 arguments passed. Please specify a command`
102
-
103
- ## shows version information with --version flag
104
-
105
- > Snapshot 1
106
-
107
- `␊
108
- docsify-cli version:␊
109
- 4.4.4␊
110
- `
111
-
112
- ## shows version information with -v flag
113
-
114
- > Snapshot 1
115
-
116
- `␊
117
- docsify-cli version:␊
118
- 4.4.4␊
119
- `
119
+ Unknown argument: junkcmd`
0 commit comments