From 2ac9c0dd8f398e35f5eaf34807b483544c736509 Mon Sep 17 00:00:00 2001 From: Patrick Demers Date: Sun, 14 Mar 2021 19:35:33 -0500 Subject: [PATCH 1/2] add disableGoogleFont parameter to serve command --- cli/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cli/index.ts b/cli/index.ts index 8a0747f464..ec419a034e 100644 --- a/cli/index.ts +++ b/cli/index.ts @@ -72,6 +72,12 @@ YargsParser.command( type: 'boolean', }); + yargs.options('disableGoogleFont', { + describe: 'Disable Google Font', + type: 'boolean', + default: false, + }); + yargs.demandOption('spec'); return yargs; }, @@ -80,6 +86,7 @@ YargsParser.command( ssr: argv.ssr as boolean, title: argv.title as string, watch: argv.watch as boolean, + disableGoogleFont: argv.disableGoogleFont as boolean, templateFileName: argv.template as string, templateOptions: argv.templateOptions || {}, redocOptions: getObjectOrJSON(argv.options), From 6b9558e299e0dc8789a8940559e950f0fd65082d Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Wed, 31 Mar 2021 15:50:46 +0300 Subject: [PATCH 2/2] Update cli/index.ts --- cli/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/index.ts b/cli/index.ts index ec419a034e..ef01a10174 100644 --- a/cli/index.ts +++ b/cli/index.ts @@ -72,7 +72,7 @@ YargsParser.command( type: 'boolean', }); - yargs.options('disableGoogleFont', { + yargs.options('disable-google-font', { describe: 'Disable Google Font', type: 'boolean', default: false,