Skip to content

Commit

Permalink
verbose mode is always last if showing version
Browse files Browse the repository at this point in the history
  • Loading branch information
dasiux committed Oct 30, 2021
1 parent 9e02092 commit cfa2879
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ module.exports = async function cli() {
} );

// Get answers to twighouse config
if ( !options.example && options.ask ) {
if ( options.ask && !options.example ) {
const answers = await input.ask( {
verbose : { question : 'Run in verbose mode? (yes/no)', is_bool : true },
verbose : { question : 'Run in verbose mode? (yes/no)', is_bool : true, last : options.version || null },
data : { question : 'Data directory? (path, uri or url)' },
fragments : { question : 'Fragments directory? (path, uri or url)' },
templates : { question : 'Templates directory? (path, uri or url)' },
Expand Down

0 comments on commit cfa2879

Please sign in to comment.