Skip to content

Commit 2b0893a

Browse files
committed
fix: Improve command line help
1 parent c3dc8ff commit 2b0893a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/index.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@ const pkg = require("../package.json");
99
console.log(`docu-notion version ${pkg.version}`);
1010

1111
program.name("docu-notion").description("");
12+
program.usage("-n <token> -r <root> [options]");
1213
program
13-
.requiredOption("-n, --notion-token <string>", "notion api token")
1414
.requiredOption(
15-
"-r, --root-page <string>",
16-
"The 31 character ID of the page which is the root of your notion docs"
15+
"-n, --notion-token <string>",
16+
"notion api token, which looks like secret_3bc1b50XFYb15123RHF243x43450XFY33250XFYa343"
1717
)
1818
.requiredOption(
19+
"-r, --root-page <string>",
20+
"The 31 character ID of the page which is the root of your docs page in notion. The code will look like 9120ec9960244ead80fa2ef4bc1bba25. This page must have a child page named 'Outline'"
21+
)
22+
.option(
1923
"-m, --markdown-output-path <string>",
2024
"Root of the hierarchy for md files. WARNING: node-pull-mdx will delete files from this directory. Note also that if it finds localized images, it will create an i18n/ directory as a sibling.",
2125
"./docs"

0 commit comments

Comments
 (0)