settings: better --no-gui parsing since it is not a boolean (can be string, empty string or undefined)

This commit is contained in:
jean-emmanuel 2016-11-06 23:00:03 +01:00
parent 7bc6cb7b3e
commit 8ca5421da7

View file

@ -74,7 +74,7 @@ var makeDefaultConfig = function(argv){
sessionFile: argv.l || false,
customModule: argv.c || false,
noGui: argv.n || false,
guiOnly: argv.g || false,
guiOnly: typeof argv.g == 'string' ? argv.g.length ? argv.g : true : false,
appAddresses:function(){
var appAddresses = []