Skip to content

Commit

Permalink
feat(cli): add the --title option to the serve subcommand (#1160)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakCodes authored May 9, 2020
1 parent 1c7fc1a commit 10414fc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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 || {},
Expand Down

0 comments on commit 10414fc

Please sign in to comment.