Skip to content

Commit 87d676d

Browse files
committed
fix default options in cli
1 parent feb3838 commit 87d676d

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ texlive for Windows:
2727
-V, --version output the version number
2828
-a --author [name] author's name to be added in the notebook
2929
-i --initials [initials] initials of the author to be placed in the upper-right corner of all pages
30-
-o --output [filename] output file for the notebook. Default to `./notebook.pdf`
30+
-o --output [filename] output file for the notebook. (default: "./notebook.pdf")
3131
-s --size <size> font size (default: "10")
32-
-c --columns <amount> number of columns. Default to 2 (default: "2")
33-
-p --paper <size> paper size. Default to letterpaper (default: "letterpaper")
32+
-c --columns <amount> number of columns. (default: "2")
33+
-p --paper <size> paper size. (default: "letterpaper")
3434
-h, --help output usage information
3535

3636

bin/notebookgen

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ options
99
.description('Auto generate notebooks from your source code')
1010
.option('-a --author [name]', 'author\'s name to be added in the notebook')
1111
.option('-i --initials [initials]', 'initials of the author to be placed in the upper-right corner of all pages')
12-
.option('-o --output [filename]', 'output file for the notebook. Default to `./notebook.pdf`')
12+
.option('-o --output [filename]', 'output file for the notebook.', './notebook.pdf')
1313
.option('-s --size <size>', 'font size', /^(8|9|10|11|12|14|17|20)$/i, '10')
14-
.option('-c --columns <amount>', 'number of columns. Default to 2', /^(2|3)$/i, '2')
15-
.option('-p --paper <size>', 'paper size. Default to letterpaper', /^(letterpaper|a4paper|a5paper)$/i, 'letterpaper')
14+
.option('-c --columns <amount>', 'number of columns.', /^(2|3)$/i, '2')
15+
.option('-p --paper <size>', 'paper size.', /^(letterpaper|a4paper|a5paper)$/i, 'letterpaper')
1616

1717
options.parse(process.argv)
1818

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "notebook-generator",
3-
"version": "1.4.2",
3+
"version": "1.4.3",
44
"description": "Notebook generator for programming contest. (or \"something useful to share your code in pdf\")",
55
"main": "notebookgen.js",
66
"scripts": {

0 commit comments

Comments
 (0)