Add short options for size and pause

This commit is contained in:
astefanutti 2015-07-21 17:16:19 +02:00
parent 56c4ecf158
commit dd6065620a
2 changed files with 4 additions and 2 deletions

View File

@ -48,8 +48,8 @@ url URL of the slides deck
filename Filename of the output PDF file
Options:
--size Size of the slides deck viewport: <width>x<height> [1280x720]
--pause Duration in milliseconds before each slide is exported [1000]
-s, --size Size of the slides deck viewport: <width>x<height> [1280x720]
-p, --pause Duration in milliseconds before each slide is exported [1000]
--screenshots Capture each slide as an image [false]
--screenshots-directory Screenshots output directory [screenshots]
--screenshots-size Screenshots resolution, can be repeated [--size]

View File

@ -29,12 +29,14 @@ var parser = require("./libs/nomnom")
help: "Filename of the output PDF file"
},
size: {
abbr: 's',
default: "1280x720",
callback: parseResolution,
transform: parseResolution,
help: "Size of the slides deck viewport: <width>x<height>"
},
pause: {
abbr: 'p',
default: 1000,
help: "Duration in milliseconds before each slide is exported"
},