File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,14 +25,14 @@ export const run = async () => {
2525 native : 'app'
2626 }
2727 } ) ;
28-
28+
2929 //Check the passed flags when installing Nightwatch and then suggest when undefined flag is been found.
3030 if ( argv [ 0 ] !== undefined ) {
3131 if ( ( argv [ 0 ] !== '--mobile' ) && ( String ( argv [ 0 ] ) !== '--generate-config' ) ) {
3232 const nightwatchFlags = [ '--mobile' , '--generate-config' ] ;
3333 const checkFlags = didYouMean ( argv [ 0 ] , nightwatchFlags ) ;
34-
35- Logger . error ( colors . red ( `Did you mean flag ${ checkFlags [ 'winner' ] } ` ) ) ;
34+ const msg = colors . red ( `Flag ${ argv [ 0 ] } is not a valid flag, did you mean` ) + colors . green ( ` flag ${ checkFlags [ 'winner' ] } ` ) ;
35+ Logger . error ( msg ) ;
3636
3737 // terminate Nightwatch setup since flag does not have definition
3838 process . exit ( 0 ) ;
You can’t perform that action at this time.
0 commit comments