cli: fix false positive -e + -l detection

This commit is contained in:
jean-emmanuel 2016-12-06 09:49:57 +01:00
parent c2bff09c58
commit 5ef92b9c50

View file

@ -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'
}
}