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:
parent
5da0bcec11
commit
4dbdc4e3da
|
@ -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 = [];
|
||||
|
|
|
@ -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[] = []
|
||||
|
|
Loading…
Reference in New Issue