Skip to content

Commit 5fa1d9d

Browse files
committed
fix: improve command line argument description
1 parent bdc3715 commit 5fa1d9d

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,18 @@ export QIITA_ACCESS_TOKEN=9226168a5ef65f8e81153b460e7c78f8b8e53394
7171
npx qiita_export_all
7272
```
7373

74+
### Command Line options
75+
76+
```plain
77+
Usage: qiita_export_all [options]
78+
79+
Options:
80+
-V, --version output the version number
81+
-u, --user-id <id> Qiita user id you want to download(default: the user who get QIITA_ACCESS_TOKEN).
82+
-o, --output <path> Write output to <path> instead of current directory.
83+
-h, --help output usage information
84+
```
85+
7486
## Note
7587

7688
- md ファイルは UTF-8 でエクスポートします

bin/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ if (token == null) {
6767
} else {
6868
program
6969
.version("1.4.0")
70-
.option("-u, --user-id <id>", "user id")
71-
.option("-o, --output <file>", "Write output to <file> instead of current directory.")
70+
.name("qiita_export_all")
71+
.option("-u, --user-id <id>", "Qiita user id you want to download(default: the user who get QIITA_ACCESS_TOKEN).")
72+
.option("-o, --output <path>", "Write output to <path> instead of current directory.")
7273
.parse(process.argv);
7374
main(program.userId, program.output).catch(er => {
7475
console.error(er.stack, er);

0 commit comments

Comments
 (0)