From 6df15ace511d0cc280abcc9972d3a13c79b5f930 Mon Sep 17 00:00:00 2001 From: Rodrigo Fernandes Date: Sun, 6 Aug 2023 18:16:29 +0100 Subject: [PATCH] fix args in yargs --- src/yargs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yargs.ts b/src/yargs.ts index e89f91c..e789244 100644 --- a/src/yargs.ts +++ b/src/yargs.ts @@ -86,7 +86,7 @@ const choices: ArgvChoices = { export async function setup(): Promise { const currentYear = new Date().getFullYear(); - const argv = await yargs() + const argv = await yargs(process.argv.slice(2)) .usage('Usage: diff2html [options] -- [diff args]') .option('style', { alias: 's',