From 5ef92b9c505d2639f82fd7d8435e6a7b4773df89 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Tue, 6 Dec 2016 09:49:57 +0100 Subject: [PATCH] cli: fix false positive -e + -l detection --- app/main/settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main/settings.js b/app/main/settings.js index 5815e751..cf48544d 100644 --- a/app/main/settings.js +++ b/app/main/settings.js @@ -44,7 +44,7 @@ var options = { 't':{alias:'theme',type:'array',describe:'theme name or path (mutliple values allowed)'}, 'e':{alias:'examples',type:'boolean',describe:'list examples instead of recent sessions', check: (e,argv)=>{ - return (!argv.l) ? + return (!e || !argv.l) ? true : 'examples can\'t be listed if --load is set' } }