@@ -7,6 +7,7 @@ const DIR_SERVER = '../server/';
77
88const exit = require ( DIR_SERVER + 'exit' ) ;
99const config = require ( DIR_SERVER + 'config' ) ;
10+ const env = require ( DIR_SERVER + 'env' ) ;
1011
1112const argv = process . argv ;
1213const args = require ( 'minimist' ) ( argv . slice ( 2 ) , {
@@ -51,9 +52,9 @@ const args = require('minimist')(argv.slice(2), {
5152 prefix : config ( 'prefix' ) || '' ,
5253 progress : config ( 'progress' ) ,
5354 console : config ( 'console' ) ,
54- terminal : config ( 'terminal' ) ,
55+ terminal : env . bool ( 'terminal' ) || config ( 'terminal' ) ,
5556
56- 'terminal-path' : config ( 'terminalPath' ) ,
57+ 'terminal-path' : env ( 'terminal_path' ) || config ( 'terminalPath' ) ,
5758 'config-dialog' : config ( 'configDialog' ) ,
5859 'one-panel-mode' : config ( 'onePanelMode' ) ,
5960 'html-dialogs' : config ( 'htmlDialogs' )
@@ -93,7 +94,7 @@ if (args.version) {
9394 config ( 'progress' , args . progress ) ;
9495 config ( 'console' , args . console ) ;
9596 config ( 'terminal' , args . terminal ) ;
96- config ( 'terminalPath' , args . terminalPath ) ;
97+ config ( 'terminalPath' , args [ 'terminal-path' ] ) ;
9798 config ( 'editor' , args . editor ) ;
9899 config ( 'prefix' , args . prefix ) ;
99100 config ( 'root' , args . root ) ;
0 commit comments