Improve comments on main(), which accepts the parsed arguments to the function

This commit is contained in:
mmcw-dev 2019-01-03 21:57:17 -05:00
parent 63134080ff
commit 80e0f9a7d9
1 changed files with 6 additions and 0 deletions

View File

@ -380,6 +380,8 @@ async function render (output, avconv) {
/**
* Parses the arguments and runs the process of exporting, sorting and then
* "weaving" the frames back into a video
*
* @param {object} arg Object containing all arguments
**/
async function main (arg) {
let input = arg.input.split(':')
@ -408,6 +410,10 @@ async function main (arg) {
avconv = true
}
if (arg.tmp) {
TMPDIR = arg.tmp
}
if (arg.pattern) {
pattern = arg.pattern.split(':')
pattern = pattern.map(el =>{