diff --git a/cli/index.ts b/cli/index.ts index e5f90733ac..ce3e44b508 100644 --- a/cli/index.ts +++ b/cli/index.ts @@ -99,7 +99,6 @@ YargsParser.command( yargs.options('title', { describe: 'Page Title', type: 'string', - default: 'ReDoc documentation', }); yargs.options('disableGoogleFont', { @@ -291,7 +290,7 @@ async function getPageHTML( ? '' : ``) + css : '', - title, + title: title || spec.info.title || 'ReDoc documentation', disableGoogleFont, templateOptions, });