Skip to content

Commit a6ef7cf

Browse files
committed
README快速上手增加命令行用法
1 parent d71109a commit a6ef7cf

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,40 @@ jmcomic.download_album(422866, option)
8484
# 等价写法: option.download_album(422866)
8585
```
8686

87+
### 3. 使用命令行
88+
> 如果只想下载本子,使用命令行会比上述方式更加简单直接
89+
>
90+
> 例如,在windows上,直接按下win+r键,输入jmcomic xxx就可以下载本子。
91+
92+
示例:
93+
94+
下载本子422866的命令
95+
96+
```sh
97+
jmcomic 422866
98+
```
99+
同时下载本子123, 章节456的命令
100+
```sh
101+
jmcomic 123 p456
102+
```
103+
104+
命令行模式也支持自定义option,你可以使用环境变量或者命令行参数:
105+
106+
a. 通过命令行--option参数指定option文件路径
107+
108+
```sh
109+
jmcomic 123 --option="D:/a.yml"
110+
```
111+
112+
b. 配置环境变量 `JM_OPTION_PATH` 为option文件路径(推荐)
113+
114+
```sh
115+
# set JM_OPTION_PATH="D:/a.yml"
116+
jmcomic 123
117+
```
118+
119+
120+
87121
## 进阶使用
88122

89123
请查阅文档首页→[jmcomic.readthedocs.io](https://jmcomic.readthedocs.io/zh-cn/latest)

0 commit comments

Comments
 (0)