Skip to content

Commit

Permalink
Fix --hogan warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Jan 30, 2022
1 parent c7db6c0 commit 0e33e2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/express-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ program
.option('-e, --ejs', 'add ejs engine support', renamedOption('--ejs', '--view=ejs'))
.option(' --pug', 'add pug engine support', renamedOption('--pug', '--view=pug'))
.option(' --hbs', 'add handlebars engine support', renamedOption('--hbs', '--view=hbs'))
.option('-H, --hogan', 'add hogan.js engine support', renamedOption('--hogan', '--view=hogan'))
.option('-H, --hogan', 'add hogan.js engine support', renamedOption('--hogan', '--view=hjs'))
.option('-v, --view <engine>', 'add view <engine> support (dust|ejs|hbs|hjs|jade|pug|twig|vash) (defaults to jade)')
.option(' --no-view', 'use static html instead of view engine')
.option('-c, --css <engine>', 'add stylesheet <engine> support (less|stylus|compass|sass) (defaults to plain css)')
Expand Down
2 changes: 1 addition & 1 deletion test/cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ describe('express(1)', function () {

it('should warn about argument rename', function () {
assert.ok(ctx.warnings.some(function (warn) {
return warn === 'option `--hogan\' has been renamed to `--view=hogan\''
return warn === 'option `--hogan\' has been renamed to `--view=hjs\''
}))
})

Expand Down

0 comments on commit 0e33e2d

Please sign in to comment.