From 685fa27cc75515fba6683ef1d01183850e32c64d Mon Sep 17 00:00:00 2001 From: Luca Armaroli Date: Sat, 5 Sep 2020 12:39:21 +0200 Subject: [PATCH] added debug and best quality flags --- src/CommandLineParser.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/CommandLineParser.ts b/src/CommandLineParser.ts index d682c8d..398d825 100644 --- a/src/CommandLineParser.ts +++ b/src/CommandLineParser.ts @@ -70,6 +70,22 @@ export const argv: any = yargs.options({ default: false, demandOption: false }, + debug: { + alias: 'd', + describe: 'Set logging level to debug (only use this if you know what are doing)', + type: 'boolean', + default: false, + demandOption: false + }, + // TODO: change this in askChoiche so that by default we download the best one + // and let the user decide if they want a particular quality with this flag + bestQuality: { + alias: 'b', + describe: 'Automaticly choose the best quality aviable for video and audio', + type: 'boolean', + default: false, + demandOption: false + }, closedCaptions: { alias: 'cc', describe: 'Check if closed captions are available and let the user choose which one to download (will not ask if only one available)',