Fixed breaking change to commander where options are not directly on the "program" object and need to be retrieved via the .opts() method

This commit is contained in:
Matt McWilliams 2021-04-07 09:13:04 -04:00
parent 5da0bcec11
commit 4dbdc4e3da
2 changed files with 4 additions and 2 deletions

View File

@ -512,7 +512,8 @@ async function render(output, avconv) {
*
* @param {object} arg Object containing all arguments
**/
async function main(arg) {
async function main(program) {
const arg = program.opts();
let input = arg.input.split(':');
let output = arg.output;
let pattern = [];

View File

@ -547,7 +547,8 @@ async function render (output : string, avconv : boolean) {
*
* @param {object} arg Object containing all arguments
**/
async function main (arg : any) {
async function main (program : any) {
const arg = program.opts();
let input : string[] = arg.input.split(':')
let output : string = arg.output
let pattern : any[] = []