From bb661f0b4626073002fa2fca792a24e9ceec702c Mon Sep 17 00:00:00 2001 From: Zakary Kamal Ismail Date: Tue, 28 Jan 2020 19:15:23 -0500 Subject: [PATCH] feat(cli): add the --title option to the serve subcommand --- cli/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cli/index.ts b/cli/index.ts index 8c34bb05..7c836f09 100644 --- a/cli/index.ts +++ b/cli/index.ts @@ -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 || {},