add disableGoogleFont parameter to serve command

This commit is contained in:
Patrick Demers 2021-03-14 19:35:33 -05:00
parent 4846259de3
commit 2ac9c0dd8f

View File

@ -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),