File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -167,8 +167,10 @@ Vorpal.prototype.parse = function (argv, options) {
167167 this . exec ( args . join ( ' ' ) , function ( err ) {
168168 if ( err !== undefined && err !== null ) {
169169 throw new Error ( err ) ;
170- // Exits the CLI context as the UI is still attached
171- this . exec ( 'exit' ) ;
170+ if ( ! options . keepAlive ) {
171+ // Exits the CLI context as the UI is still attached
172+ this . exec ( 'exit' ) ;
173+ }
172174 }
173175 } ) ;
174176 }
Original file line number Diff line number Diff line change @@ -167,8 +167,10 @@ Vorpal.prototype.parse = function (argv, options) {
167167 this . exec ( args . join ( ' ' ) , function ( err ) {
168168 if ( err !== undefined && err !== null ) {
169169 throw new Error ( err ) ;
170- // Exits the CLI context as the UI is still attached
171- this . exec ( 'exit' ) ;
170+ if ( ! options . keepAlive ) {
171+ // Exits the CLI context as the UI is still attached
172+ this . exec ( 'exit' ) ;
173+ }
172174 }
173175 } ) ;
174176 }
You can’t perform that action at this time.
0 commit comments