diff --git a/cli.js b/cli.js index 673201c..e077476 100644 --- a/cli.js +++ b/cli.js @@ -26,6 +26,7 @@ const cli = meow(` --json Use JSON edit spec --transition-name Name of default transition to use (default: random) --transition-duration Default transition duration + --clip-duration Default clip duration --width Width which all media will be converted to --height Height which all media will be converted to --fps FPS which all videos will be converted to @@ -46,6 +47,7 @@ const cli = meow(` verbose: { type: 'boolean', alias: 'v' }, fast: { type: 'boolean', alias: 'f' }, transitionDuration: { type: 'number' }, + clipDuration: { type: 'number' }, width: { type: 'number' }, height: { type: 'number' }, fps: { type: 'number' }, @@ -98,6 +100,8 @@ const cli = meow(` if (transitionDuration) params.defaults.transition.duration = transitionDuration; } + if (clipDuration) params.defaults.duration = clipDuration; + if (fontPath) { params.defaults.layer = { fontPath,