mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-22 00:26:34 +03:00
feat(cli): add the --title option to the serve subcommand (#1160)
This commit is contained in:
parent
1c7fc1a261
commit
10414fc6d5
|
@ -50,6 +50,11 @@ YargsParser.command(
|
|||
describe: 'path or URL to your spec',
|
||||
});
|
||||
|
||||
yargs.options('title', {
|
||||
describe: 'Page Title',
|
||||
type: 'string',
|
||||
});
|
||||
|
||||
yargs.option('s', {
|
||||
alias: 'ssr',
|
||||
describe: 'Enable server-side rendering',
|
||||
|
@ -73,6 +78,7 @@ YargsParser.command(
|
|||
async argv => {
|
||||
const config: Options = {
|
||||
ssr: argv.ssr as boolean,
|
||||
title: argv.title as string,
|
||||
watch: argv.watch as boolean,
|
||||
templateFileName: argv.template as string,
|
||||
templateOptions: argv.templateOptions || {},
|
||||
|
|
Loading…
Reference in New Issue
Block a user