@@ -4,17 +4,17 @@ The actual snapshot is saved in `cli.test.js.snap`.
44
55Generated by [ AVA] ( https://avajs.dev ) .
66
7- ## rejects promise due to error on passing in an unknown command
7+ ## shows up help message without any args
88
99> Snapshot 1
1010
11- `Usage: docsify <init|serve> < path> ␊
11+ `Usage: docsify <init|serve> [ path] ␊
1212 ␊
1313 Commands:␊
1414 docsify init [path] Creates new docs [aliases: i]␊
1515 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]␊
1818 ␊
1919 Global Options␊
2020 --help, -h Show help [boolean]␊
@@ -27,19 +27,19 @@ Generated by [AVA](https://avajs.dev).
2727 Development:␊
2828 https://github.com/docsifyjs/docsify-cli/blob/master/CONTRIBUTING.md␊
2929 ␊
30- Unknown argument: junkcmd `
30+ [ERROR] 0 arguments passed. Please specify a command `
3131
32- ## shows help with --help flag
32+ ## shows help with -h flag
3333
3434> Snapshot 1
3535
36- `Usage: docsify <init|serve> < path> ␊
36+ `Usage: docsify <init|serve> [ path] ␊
3737 ␊
3838 Commands:␊
3939 docsify init [path] Creates new docs [aliases: i]␊
4040 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]␊
4343 ␊
4444 Global Options␊
4545 --help, -h Show help [boolean]␊
@@ -52,17 +52,17 @@ Generated by [AVA](https://avajs.dev).
5252 Development:␊
5353 https://github.com/docsifyjs/docsify-cli/blob/master/CONTRIBUTING.md`
5454
55- ## shows help with -h flag
55+ ## shows help with --help flag
5656
5757> Snapshot 1
5858
59- `Usage: docsify <init|serve> < path> ␊
59+ `Usage: docsify <init|serve> [ path] ␊
6060 ␊
6161 Commands:␊
6262 docsify init [path] Creates new docs [aliases: i]␊
6363 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]␊
6666 ␊
6767 Global Options␊
6868 --help, -h Show help [boolean]␊
@@ -75,17 +75,35 @@ Generated by [AVA](https://avajs.dev).
7575 Development:␊
7676 https://github.com/docsifyjs/docsify-cli/blob/master/CONTRIBUTING.md`
7777
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
7997
8098> Snapshot 1
8199
82- `Usage: docsify <init|serve> < path> ␊
100+ `Usage: docsify <init|serve> [ path] ␊
83101 ␊
84102 Commands:␊
85103 docsify init [path] Creates new docs [aliases: i]␊
86104 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]␊
89107 ␊
90108 Global Options␊
91109 --help, -h Show help [boolean]␊
@@ -98,22 +116,4 @@ Generated by [AVA](https://avajs.dev).
98116 Development:␊
99117 https://github.com/docsifyjs/docsify-cli/blob/master/CONTRIBUTING.md␊
100118 ␊
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