Skip to content

Commit

Permalink
Merge pull request #137 from rtfpessoa/fix-title-option
Browse files Browse the repository at this point in the history
fix: use correct title flag name
  • Loading branch information
rtfpessoa authored Jun 3, 2022
2 parents 9f9667d + 75cc1ed commit 962ee9c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ export function parseArgv(argv: Argv): [Diff2HtmlConfig, Configuration] {
inputSource: argv.input,
diffyType: argv.diffy,
htmlWrapperTemplate: argv.htmlWrapperTemplate || defaultWrapperTemplate,
pageTitle: argv.pageTitle || defaultPageTitle,
pageHeader: argv.pageTitle || defaultPageHeader,
pageTitle: argv.title || defaultPageTitle,
pageHeader: argv.title || defaultPageHeader,
ignore: argv.ignore || [],
};

Expand Down
6 changes: 3 additions & 3 deletions src/yargs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export type Argv = {
diffy?: DiffyType;
file?: string;
htmlWrapperTemplate?: string;
pageTitle?: string;
title?: string;
ignore?: string[];
extraArguments: string[];
};
Expand All @@ -55,7 +55,7 @@ const defaults: Argv = {
diffy: undefined,
file: undefined,
htmlWrapperTemplate: undefined,
pageTitle: undefined,
title: undefined,
extraArguments: [],
};

Expand Down Expand Up @@ -213,7 +213,7 @@ export function setup(): Argv {
describe: 'Page title for HTML output',
nargs: 1,
type: 'string',
default: defaults.pageTitle,
default: defaults.title,
})
.option('ignore', {
alias: 'ig',
Expand Down

0 comments on commit 962ee9c

Please sign in to comment.