From ca5132f63d11700122a894ce81eaabded607a871 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Thu, 27 Apr 2017 14:18:26 +0200 Subject: [PATCH] cli: fix -g (false positive conflict with -n) --- app/main/settings.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main/settings.js b/app/main/settings.js index e5951afb..a9e1fffb 100644 --- a/app/main/settings.js +++ b/app/main/settings.js @@ -33,13 +33,13 @@ var options = { 'd':{alias:'debug',type:'boolean',describe:'log received osc messages in the console'}, 'n':{alias:'no-gui',type:'boolean',describe:'disable default gui', check: (n,argv)=>{ - return (!argv.g) ? + return (!n || !argv.g) ? true : 'no-gui and gui-only can\'s be enabled simultaneously' } }, 'g':{alias:'gui-only',type:'string',describe:'app server\'s url. If true, local port (--port) is used', check: (g,argv)=>{ - return (!argv.n) ? + return (!g || !argv.n) ? true : 'no-gui and gui-only can\'s be enabled simultaneously' } },